Class which represents a PointLight.
More...
|
static C3D_API LightCategorySPtr | Create () |
| Creation function, used by Factory. 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 |
|
Class which represents a PointLight.
- Author
- Sylvain DOREMUS
- Version
- 0.1
- Date
- 09/02/2010
◆ PointLight()
C3D_API Castor3D::PointLight::PointLight |
( |
| ) |
|
◆ ~PointLight()
C3D_API Castor3D::PointLight::~PointLight |
( |
| ) |
|
◆ Bind()
virtual C3D_API void Castor3D::PointLight::Bind |
( |
Castor::PxBufferBase & |
p_texture, |
|
|
uint32_t |
p_index |
|
) |
| const |
|
virtual |
◆ Create()
static C3D_API LightCategorySPtr Castor3D::PointLight::Create |
( |
| ) |
|
|
static |
Creation function, used by Factory.
- Returns
- A light
◆ GetAttenuation() [1/2]
Castor::Point3f const& Castor3D::PointLight::GetAttenuation |
( |
| ) |
const |
|
inline |
Retrieves the attenuation components.
- Returns
- The attenuation components
◆ GetAttenuation() [2/2]
Castor::Point3f& Castor3D::PointLight::GetAttenuation |
( |
| ) |
|
|
inline |
Retrieves the attenuation components.
- Returns
- The attenuation components
◆ GetPosition()
virtual C3D_API Castor::Point3f Castor3D::PointLight::GetPosition |
( |
| ) |
const |
|
virtual |
Retrieves the light source position.
- Returns
- The value
◆ SetAttenuation()
C3D_API void Castor3D::PointLight::SetAttenuation |
( |
Castor::Point3f const & |
p_ptAttenuation | ) |
|
Sets attenuation components.
- Parameters
-
[in] | p_ptAttenuation | The attenuation components |
◆ SetPosition()
virtual C3D_API void Castor3D::PointLight::SetPosition |
( |
Castor::Point3r const & |
p_position | ) |
|
|
virtual |
Sets the light source position.
- Parameters
-
[in] | p_position | The new value |
◆ Scene
The documentation for this class was generated from the following file: