|
Castor3D
..
|
Class which represents a Directional Light. More...
Inheritance diagram for Castor3D::DirectionalLight:
Collaboration diagram for Castor3D::DirectionalLight:Classes | |
| class | BinaryParser |
| DirectionalLight loader. More... | |
| class | TextLoader |
| DirectionalLight loader. More... | |
Public Member Functions | |
| C3D_API | DirectionalLight () |
| Constructor. More... | |
| C3D_API | ~DirectionalLight () |
| 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 | SetDirection (Castor::Point3f const &p_direction) |
| Sets the light source direction. More... | |
| virtual C3D_API Castor::Point3f | GetDirection () const |
| Retrieves the light source direction. 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 () |
| Light * | GetLight () 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 the 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 |
Class which represents a Directional Light.
| C3D_API Castor3D::DirectionalLight::DirectionalLight | ( | ) |
Constructor.
| C3D_API Castor3D::DirectionalLight::~DirectionalLight | ( | ) |
Destructor.
|
virtual |
Puts the light into the given texture.
Implements Castor3D::LightCategory.
|
static |
Creation function, used by the Factory.
|
virtual |
Retrieves the light source direction.
|
virtual |
Sets the light source direction.
| [in] | p_direction | The new value |
|
friend |
1.8.15