#include <dx9_wrap_fixed.h>
Public Member Functions | |
| Light () | |
| Creates default legacy light. | |
| void | set_type (D3DLIGHTTYPE type) |
| Set type of the light (directional, point, or spotlight). | |
| void | set_range (math::scalar_t range) |
| Set light range. | |
| void | set_position (const math::vector4 &pos) |
| Set light position vector. | |
| void | set_direction (const math::vector4 &dir) |
| Set light direction vector. | |
| void | set_spotlight_params (math::scalar_t theta, math::scalar_t phi, math::scalar_t falloff) |
| Set light spotlight parameters (theta, phi, and falloff values). | |
| void | set_attenuation (math::scalar_t linear, math::scalar_t squared, math::scalar_t exponential) |
| Set attenuation factors. | |
| void | set_diffuse (math::scalar_t r, math::scalar_t g, math::scalar_t b) |
| Set diffuse color for the legacy vertex light. | |
| void | set_specular (math::scalar_t r, math::scalar_t g, math::scalar_t b) |
| Set specular color for the legacy vertex light. | |
| void | set_ambient (math::scalar_t r, math::scalar_t g, math::scalar_t b) |
| Set ambient color for the legacy vertex light. | |
|
|
Creates default legacy light. Default settings are:
|
|
|
Set type of the light (directional, point, or spotlight).
|
|
|
Set light range.
|
|
|
Set light position vector.
|
|
|
Set light direction vector.
|
|
||||||||||||||||
|
Set light spotlight parameters (theta, phi, and falloff values).
|
|
||||||||||||||||
|
Set attenuation factors.
|
|
||||||||||||||||
|
Set diffuse color for the legacy vertex light.
|
|
||||||||||||||||
|
Set specular color for the legacy vertex light.
|
|
||||||||||||||||
|
Set ambient color for the legacy vertex light.
|
1.3.6