-
Notifications
You must be signed in to change notification settings - Fork 1
/
FancyTile.h
96 lines (36 loc) · 1.37 KB
/
FancyTile.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// FancyTile1.h: interface for the CFancyTile class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_FANCYTILE1_H__CA4BC257_6E4D_40FC_A2B9_0014D36900CF__INCLUDED_)
#define AFX_FANCYTILE1_H__CA4BC257_6E4D_40FC_A2B9_0014D36900CF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "TextureMap.h"
class CFancyTile : public CTextureMap
{
public:
CFancyTile();
virtual ~CFancyTile();
CFancyTile(CColor borderDiff, CColor borderAmbient, CColor borderSpecular,
CColor baseDiff, CColor baseAmbient, CColor baseSpecular,
CColor TikliDiff, CColor TikliAmbient, CColor TikliSpecular,
float tile, float borderWidth, float tikliWidth);
virtual CColor GetDiffuseColorAt (CIntersectionInfo hitInfo);
virtual CColor GetAmbientColorAt (CIntersectionInfo hitInfo);
virtual CColor GetSpecularColorAt (CIntersectionInfo hitInfo);
protected:
CColor m_BorderDiffuse;
CColor m_BorderAmbient;
CColor m_BorderSpecular;
CColor m_BaseDiffuse;
CColor m_BaseAmbient;
CColor m_BaseSpecular;
CColor m_TikliDiffuse;
CColor m_TikliAmbient;
CColor m_TikliSpecular;
float m_fTile;
float m_fBorderWidth;
float m_fTikliWidth;
};
#endif // !defined(AFX_FANCYTILE1_H__CA4BC257_6E4D_40FC_A2B9_0014D36900CF__INCLUDED_)