#include <Light.h>
This class contains a couple of methods for the light object.
Public Member Functions | |
Light (void) | |
This is the standard constructor. | |
Light (int n_LightColor, Vector3 *n_DefaultLightDirection) | |
This constructor initalized a light object with the given parameters. | |
Light (Light *n_Light) | |
This constructor initalized a light object with the given light object. | |
__property void | set_LightColor (int n_LightColor) |
Sets the light color. | |
__property void | set_DefaultLightDirection (Vector3 *n_DefaultLightDirection) |
Sets the default light direction. | |
__property void | set_OffsetRotation (Matrix4 *n_OffsetRotation) |
Sets the offset light direction rotation matrix. | |
__property void | set_BaseRotation (Matrix4 *n_BaseRotation) |
Sets the base light direction rotation matrix. | |
__property void | set_LightViewMode (unsigned char n_LightViewMode) |
Sets the light view mode. | |
__property int | get_LightColor (void) |
Returns the light color. | |
__property Vector3 * | get_OffsetLightDirection (void) |
Returns the light direction. | |
__property Vector3 * | get_BaseLightDirection (void) |
Returns the base light direction. | |
__property Vector3 * | get_DefaultLightDirection (void) |
Returns the default light direction. | |
__property Matrix4 * | get_OffsetRotation (void) |
Returns the offset light direction offset. | |
__property Matrix4 * | get_BaseRotation (void) |
Returns the base light direction offset. | |
__property unsigned char | get_LightViewMode (void) |
Returns the light view mode. | |
void | modifyOffsetRotation (Matrix4 *n_OffsetRotation) |
Add the given rotation to the current rotation offset. | |
void | modifyBaseRotation (Matrix4 *n_BaseRotation) |
Add the given rotation to the current rotation base. | |
void | calculateLightDirection (void) |
Calculates new light direction. | |
float | getNormalizedLightColorArray (void) __gc[] |
Returns the float array of the light color (values between 0 and 1). | |
Vector3 * | getOpenGLLightDirection (void) |
Returns the light direction but with the y component reflected about x-axis. | |
void | resetOffsetLightDirection (void) |
Resets the offset light direction to the base direction. | |
void | resetBaseLightDirection (void) |
Resets the base light direction to the current offset direction. | |
Private Attributes | |
int | m_LightColor |
The color of the light. | |
Vector3 * | m_OffsetLightDirection |
The offset direction of the light. | |
Vector3 * | m_BaseLightDirection |
The base direction of the light. | |
Vector3 * | m_DefaultLightDirection |
The default direction of the light. | |
Matrix4 * | m_OffsetRotation |
The offset rotaion of the light. | |
Matrix4 * | m_BaseRotation |
The base rotaion of the light. | |
unsigned char | m_LightViewMode |
The view mode of the light. |
|
This is the standard constructor.
|
|
This constructor initalized a light object with the given parameters.
|
|
This constructor initalized a light object with the given light object.
|
|
Calculates new light direction.
|
|
Returns the base light direction.
|
|
Returns the base light direction offset.
|
|
Returns the default light direction.
|
|
Returns the light color.
|
|
Returns the light view mode.
|
|
Returns the light direction.
|
|
Returns the offset light direction offset.
|
|
Returns the float array of the light color (values between 0 and 1).
|
|
Returns the light direction but with the y component reflected about x-axis.
|
|
Add the given rotation to the current rotation base.
|
|
Add the given rotation to the current rotation offset.
|
|
Resets the base light direction to the current offset direction.
|
|
Resets the offset light direction to the base direction.
|
|
Sets the base light direction rotation matrix.
|
|
Sets the default light direction.
|
|
Sets the light color.
|
|
Sets the light view mode.
|
|
Sets the offset light direction rotation matrix.
|