summaryrefslogtreecommitdiffstats
path: root/src/graphics/common/light.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics/common/light.h')
-rw-r--r--src/graphics/common/light.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/graphics/common/light.h b/src/graphics/common/light.h
index 52c2a2f..2ae8d2a 100644
--- a/src/graphics/common/light.h
+++ b/src/graphics/common/light.h
@@ -42,8 +42,8 @@ LightProg;
typedef struct
{
- char bUsed; // TRUE -> light exists
- char bEnable; // TRUE -> light turned on
+ char bUsed; // true -> light exists
+ char bEnable; // true -> light turned on
D3DTypeObj incluType; // type of all objects included
D3DTypeObj excluType; // type of all objects excluded
@@ -69,27 +69,27 @@ public:
void FlushLight();
int CreateLight();
- BOOL DeleteLight(int lightRank);
- BOOL SetLight(int lightRank, const D3DLIGHT7 &light);
- BOOL GetLight(int lightRank, D3DLIGHT7 &light);
- BOOL LightEnable(int lightRank, BOOL bEnable);
+ bool DeleteLight(int lightRank);
+ bool SetLight(int lightRank, const D3DLIGHT7 &light);
+ bool GetLight(int lightRank, D3DLIGHT7 &light);
+ bool LightEnable(int lightRank, bool bEnable);
- BOOL SetLightIncluType(int lightRank, D3DTypeObj type);
- BOOL SetLightExcluType(int lightRank, D3DTypeObj type);
+ bool SetLightIncluType(int lightRank, D3DTypeObj type);
+ bool SetLightExcluType(int lightRank, D3DTypeObj type);
- BOOL SetLightPos(int lightRank, D3DVECTOR pos);
+ bool SetLightPos(int lightRank, D3DVECTOR pos);
D3DVECTOR RetLightPos(int lightRank);
- BOOL SetLightDir(int lightRank, D3DVECTOR dir);
+ bool SetLightDir(int lightRank, D3DVECTOR dir);
D3DVECTOR RetLightDir(int lightRank);
- BOOL SetLightIntensitySpeed(int lightRank, float speed);
- BOOL SetLightIntensity(int lightRank, float value);
+ bool SetLightIntensitySpeed(int lightRank, float speed);
+ bool SetLightIntensity(int lightRank, float value);
float RetLightIntensity(int lightRank);
void AdaptLightColor(D3DCOLORVALUE color, float factor);
- BOOL SetLightColorSpeed(int lightRank, float speed);
- BOOL SetLightColor(int lightRank, D3DCOLORVALUE color);
+ bool SetLightColorSpeed(int lightRank, float speed);
+ bool SetLightColor(int lightRank, D3DCOLORVALUE color);
D3DCOLORVALUE RetLightColor(int lightRank);
void FrameLight(float rTime);