#include <light.h>
Public Types | |
| enum | LIGHT_TYPE { OMNI, DIRECTIONAL, SPOTLIGHT, UNKNOWN } |
| Light type. More... | |
Public Member Functions | |
| Light () | |
| Constructor. | |
| wxString | ToString () const |
| Get string with light properties. | |
| Light * | Clone () const |
| Get copy of instance. | |
Public Attributes | |
| enum VRUT::Light::LIGHT_TYPE | type |
| VECTOR3 | position |
Position (not for DIRECTIONAL). | |
| VECTOR3 | direction |
Direction (not for OMNI). | |
| float | angle |
Spotlight angle (SPOTLIGHT only). | |
| float | exponent |
Spotlight exponent (SPOTLIGHT only). | |
| VECTOR4 | diffuse |
| Diffuse color. | |
Definition at line 21 of file light.h.
| VRUT::Light::Light | ( | ) | [inline] |
| wxString VRUT::Light::ToString | ( | ) | const [inline] |
Get string with light properties.
Definition at line 49 of file light.h.
00050 { 00051 return wxString::Format(wxT("Light type: %i\nPosition: %s\nDirection: %s\nAngle (spot): %f\nExponent (spot): %f\nDiffuse: %s\n"), 00052 type, position.ToString().c_str(), direction.ToString().c_str(), angle, exponent, diffuse.ToString().c_str()); 00053 }
| Light* VRUT::Light::Clone | ( | ) | const [inline] |
| float VRUT::Light::angle |
| float VRUT::Light::exponent |
1.5.5