Holds light components.
More...
|
Castor::Point4f const & | GetPositionType () const |
| Retrieves the light position and type. More...
|
|
virtual void | SetPositionType (Castor::Point4f const &p_position) |
| Sets the light's type and position. More...
|
|
virtual void | SetPositionType (Castor::Point4d const &p_position) |
| Sets the light's type and position. More...
|
|
void | DoBindComponent (Castor::Point3f const &p_component, int p_index, int &p_offset, Castor::PxBufferBase &p_data) const |
|
void | DoBindComponent (Castor::Point4f const &p_component, int p_index, int &p_offset, Castor::PxBufferBase &p_data) const |
|
void | DoBindComponent (Castor::Coords4f const &p_component, int p_index, int &p_offset, Castor::PxBufferBase &p_data) const |
|
Holds light components.
- Author
- Sylvain DOREMUS
- Date
- 14/02/2010
◆ LightCategory()
C3D_API Castor3D::LightCategory::LightCategory |
( |
eLIGHT_TYPE |
p_lightType | ) |
|
The constructor, used by clone function.
- Parameters
-
[in] | p_lightType | The light category type |
◆ ~LightCategory()
virtual C3D_API Castor3D::LightCategory::~LightCategory |
( |
| ) |
|
|
virtual |
◆ Bind()
virtual C3D_API void Castor3D::LightCategory::Bind |
( |
Castor::PxBufferBase & |
p_texture, |
|
|
uint32_t |
p_index |
|
) |
| const |
|
pure virtual |
◆ DoBindComponent() [1/3]
void Castor3D::LightCategory::DoBindComponent |
( |
Castor::Point3f const & |
p_component, |
|
|
int |
p_index, |
|
|
int & |
p_offset, |
|
|
Castor::PxBufferBase & |
p_data |
|
) |
| const |
|
protected |
◆ DoBindComponent() [2/3]
void Castor3D::LightCategory::DoBindComponent |
( |
Castor::Point4f const & |
p_component, |
|
|
int |
p_index, |
|
|
int & |
p_offset, |
|
|
Castor::PxBufferBase & |
p_data |
|
) |
| const |
|
protected |
◆ DoBindComponent() [3/3]
void Castor3D::LightCategory::DoBindComponent |
( |
Castor::Coords4f const & |
p_component, |
|
|
int |
p_index, |
|
|
int & |
p_offset, |
|
|
Castor::PxBufferBase & |
p_data |
|
) |
| const |
|
protected |
◆ GetAmbientIntensity()
float Castor3D::LightCategory::GetAmbientIntensity |
( |
| ) |
const |
|
inline |
Retrieves the ambient colour.
- Returns
- The value
◆ GetColour() [1/2]
Castor::Point3f const& Castor3D::LightCategory::GetColour |
( |
| ) |
const |
|
inline |
◆ GetColour() [2/2]
Castor::Point3f& Castor3D::LightCategory::GetColour |
( |
| ) |
|
|
inline |
◆ GetDiffuseIntensity()
float Castor3D::LightCategory::GetDiffuseIntensity |
( |
| ) |
const |
|
inline |
Retrieves the diffuse colour.
- Returns
- The value
◆ GetIntensity() [1/2]
Castor::Point3f const& Castor3D::LightCategory::GetIntensity |
( |
| ) |
const |
|
inline |
- Returns
- The intensity values
◆ GetIntensity() [2/2]
Castor::Point3f& Castor3D::LightCategory::GetIntensity |
( |
| ) |
|
|
inline |
- Returns
- The intensity values
◆ GetLight()
Light* Castor3D::LightCategory::GetLight |
( |
| ) |
const |
|
inline |
Retrieves the parent light.
- Returns
- The value
◆ GetLightType()
eLIGHT_TYPE Castor3D::LightCategory::GetLightType |
( |
| ) |
const |
|
inline |
Retrieves the light type.
- Returns
- The value
◆ GetPositionType()
Castor::Point4f const& Castor3D::LightCategory::GetPositionType |
( |
| ) |
const |
|
inlineprotected |
Retrieves the light position and type.
- Returns
- The value
◆ GetSpecularIntensity()
float Castor3D::LightCategory::GetSpecularIntensity |
( |
| ) |
const |
|
inline |
Retrieves the specular colour.
- Returns
- The value
◆ SetAmbientIntensity()
void Castor3D::LightCategory::SetAmbientIntensity |
( |
float |
p_intensity | ) |
|
|
inline |
Sets the light's diffuse intensity.
- Parameters
-
[in] | p_intensity | The new value |
◆ SetColour()
void Castor3D::LightCategory::SetColour |
( |
Castor::Point3f const & |
p_colour | ) |
|
|
inline |
Sets the light's colour.
- Parameters
-
[in] | p_colour | The new value. |
◆ SetDiffuseIntensity()
void Castor3D::LightCategory::SetDiffuseIntensity |
( |
float |
p_intensity | ) |
|
|
inline |
Sets the light's diffuse intensity.
- Parameters
-
[in] | p_intensity | The new value |
◆ SetIntensity()
void Castor3D::LightCategory::SetIntensity |
( |
Castor::Point3f const & |
p_intensity | ) |
|
|
inline |
Sets the light's intensity values.
- Parameters
-
[in] | p_intensity | The new values. |
◆ SetLight()
void Castor3D::LightCategory::SetLight |
( |
Light * |
val | ) |
|
|
inline |
Sets the parent light.
- Returns
- The value
◆ SetPositionType() [1/2]
virtual void Castor3D::LightCategory::SetPositionType |
( |
Castor::Point4f const & |
p_position | ) |
|
|
inlineprotectedvirtual |
Sets the light's type and position.
- Parameters
-
[in] | p_position | The new value |
◆ SetPositionType() [2/2]
virtual void Castor3D::LightCategory::SetPositionType |
( |
Castor::Point4d const & |
p_position | ) |
|
|
inlineprotectedvirtual |
Sets the light's type and position.
- Parameters
-
[in] | p_position | The new value |
◆ SetSpecularIntensity()
void Castor3D::LightCategory::SetSpecularIntensity |
( |
float |
p_intensity | ) |
|
|
inline |
Sets the light's specular intensity.
- Parameters
-
[in] | p_intensity | The new value |
◆ Light
The documentation for this class was generated from the following file: