Castor3D  ..
Classes | Public Member Functions | Static Public Member Functions | Friends | List of all members
Castor3D::PointLight Class Reference

Class which represents a PointLight. More...

+ Inheritance diagram for Castor3D::PointLight:
+ Collaboration diagram for Castor3D::PointLight:

Classes

class  BinaryParser
 PointLight loader. More...
 
class  TextLoader
 PointLight loader. More...
 

Public Member Functions

C3D_API PointLight ()
 Constructor. More...
 
C3D_API ~PointLight ()
 Destructor. More...
 
virtual C3D_API void Bind (Castor::PxBufferBase &p_texture, uint32_t p_index) const
 Puts the light into the given texture. More...
 
virtual C3D_API void SetPosition (Castor::Point3r const &p_position)
 Sets the light source position. More...
 
virtual C3D_API Castor::Point3f GetPosition () const
 Retrieves the light source position. More...
 
C3D_API void SetAttenuation (Castor::Point3f const &p_ptAttenuation)
 Sets attenuation components. More...
 
Castor::Point3f const & GetAttenuation () const
 Retrieves the attenuation components. More...
 
Castor::Point3f & GetAttenuation ()
 Retrieves the attenuation components. More...
 
- Public Member Functions inherited from Castor3D::LightCategory
C3D_API LightCategory (eLIGHT_TYPE p_lightType)
 The constructor, used by clone function. More...
 
virtual C3D_API ~LightCategory ()
 Destructor. More...
 
void SetColour (Castor::Point3f const &p_colour)
 Sets the light's colour. More...
 
void SetIntensity (Castor::Point3f const &p_intensity)
 Sets the light's intensity values. More...
 
void SetAmbientIntensity (float p_intensity)
 Sets the light's diffuse intensity. More...
 
void SetDiffuseIntensity (float p_intensity)
 Sets the light's diffuse intensity. More...
 
void SetSpecularIntensity (float p_intensity)
 Sets the light's specular intensity. More...
 
eLIGHT_TYPE GetLightType () const
 Retrieves the light type. More...
 
float GetAmbientIntensity () const
 Retrieves the ambient colour. More...
 
float GetDiffuseIntensity () const
 Retrieves the diffuse colour. More...
 
float GetSpecularIntensity () const
 Retrieves the specular colour. More...
 
Castor::Point3f const & GetIntensity () const
 
Castor::Point3f & GetIntensity ()
 
Castor::Point3f const & GetColour () const
 
Castor::Point3f & GetColour ()
 
LightGetLight () const
 Retrieves the parent light. More...
 
void SetLight (Light *val)
 Sets the parent light. More...
 

Static Public Member Functions

static C3D_API LightCategorySPtr Create ()
 Creation function, used by Factory. More...
 

Friends

class Scene
 

Additional Inherited Members

- Protected Member Functions inherited from Castor3D::LightCategory
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
 

Detailed Description

Class which represents a PointLight.

Author
Sylvain DOREMUS
Version
0.1
Date
09/02/2010
Remarks
A point light is a light which enlights from a point in all directions.

Constructor & Destructor Documentation

◆ PointLight()

C3D_API Castor3D::PointLight::PointLight ( )

Constructor.

Remarks
Not to be used by the user, use Scene::CreateLight function instead

◆ ~PointLight()

C3D_API Castor3D::PointLight::~PointLight ( )

Destructor.

Member Function Documentation

◆ Bind()

virtual C3D_API void Castor3D::PointLight::Bind ( Castor::PxBufferBase &  p_texture,
uint32_t  p_index 
) const
virtual

Puts the light into the given texture.

Implements Castor3D::LightCategory.

◆ 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_ptAttenuationThe attenuation components

◆ SetPosition()

virtual C3D_API void Castor3D::PointLight::SetPosition ( Castor::Point3r const &  p_position)
virtual

Sets the light source position.

Parameters
[in]p_positionThe new value

Friends And Related Function Documentation

◆ Scene

friend class Scene
friend

The documentation for this class was generated from the following file: