|
My Project
|
a single light in ParaEngine. More...
#include <LightParam.h>
Public Member Functions | |
| void | MakeWhitePointLight () |
| make the current light a white point light with default value. More... | |
| const char * | ToString () |
| return the parameters as a string. More... | |
| void | FromString (const char *str) |
| convert a string returned by ToString() to this object. More... | |
Static Public Member Functions | |
| static bool | IsGreater (const CLightParam &elem1, const CLightParam &elem2) |
| static bool | IsGreaterPt (const CLightParam *elem1, const CLightParam *elem2) |
Friends | |
| class | CLightManager |
Additional Inherited Members | |
Public Attributes inherited from ParaEngine::_Para3DLight | |
| D3DLIGHTTYPE | Type |
| LinearColor | Diffuse |
| LinearColor | Specular |
| LinearColor | Ambient |
| Vector3 | Position |
| Vector3 | Direction |
| float | Range |
| float | Falloff |
| float | Attenuation0 |
| float | Attenuation1 |
| float | Attenuation2 |
| float | Theta |
| float | Phi |
a single light in ParaEngine.
| void CLightParam::FromString | ( | const char * | str | ) |
convert a string returned by ToString() to this object.
| void CLightParam::MakeWhitePointLight | ( | ) |
make the current light a white point light with default value.
| const char * CLightParam::ToString | ( | ) |
return the parameters as a string.
This is usually used for serialization. format is "Type Range (r g b a) att0 att1 att2" D3DLIGHTTYPE Type; Type of light source
1.8.12