Scene light definition.
More...
#include <tdme/engine/scene/SceneLight.h>
Scene light definition.
- Author
- Andreas Drewke
- Version
- $Id$
Definition at line 20 of file SceneLight.h.
◆ SceneLight()
Public default constructor.
- Parameters
-
Definition at line 13 of file SceneLight.cpp.
◆ getAmbient()
const Color4 & getAmbient |
( |
| ) |
const |
|
inline |
- Returns
- ambient light component
Definition at line 69 of file SceneLight.h.
◆ getConstantAttenuation()
float getConstantAttenuation |
( |
| ) |
const |
|
inline |
◆ getDiffuse()
const Color4 & getDiffuse |
( |
| ) |
const |
|
inline |
- Returns
- diffuse light component
Definition at line 84 of file SceneLight.h.
◆ getId()
◆ getLinearAttenuation()
float getLinearAttenuation |
( |
| ) |
const |
|
inline |
◆ getPosition()
const Vector4 & getPosition |
( |
| ) |
const |
|
inline |
◆ getQuadraticAttenuation()
float getQuadraticAttenuation |
( |
| ) |
const |
|
inline |
◆ getSpecular()
const Color4 & getSpecular |
( |
| ) |
const |
|
inline |
- Returns
- specular light component
Definition at line 99 of file SceneLight.h.
◆ getSpotCutOff()
float getSpotCutOff |
( |
| ) |
const |
|
inline |
◆ getSpotDirection()
const Vector3 & getSpotDirection |
( |
| ) |
const |
|
inline |
◆ getSpotExponent()
float getSpotExponent |
( |
| ) |
const |
|
inline |
◆ isEnabled()
◆ setAmbient()
void setAmbient |
( |
const Color4 & |
ambient | ) |
|
|
inline |
Set ambient light component.
- Parameters
-
ambient | ambient light component |
Definition at line 77 of file SceneLight.h.
◆ setConstantAttenuation()
void setConstantAttenuation |
( |
float |
constantAttenuation | ) |
|
|
inline |
Set up constant attenuation.
- Parameters
-
constantAttenuation | constant attenuation |
Definition at line 182 of file SceneLight.h.
◆ setDiffuse()
void setDiffuse |
( |
const Color4 & |
diffuse | ) |
|
|
inline |
Set diffuse light component.
- Parameters
-
Definition at line 92 of file SceneLight.h.
◆ setEnabled()
void setEnabled |
( |
bool |
enabled | ) |
|
|
inline |
◆ setLinearAttenuation()
void setLinearAttenuation |
( |
float |
linearAttenuation | ) |
|
|
inline |
Set up linear attenuation.
- Parameters
-
linearAttenuation | linear attenuation |
Definition at line 197 of file SceneLight.h.
◆ setPosition()
void setPosition |
( |
const Vector4 & |
position | ) |
|
|
inline |
Set light position.
- Parameters
-
position | position of light |
Definition at line 122 of file SceneLight.h.
◆ setQuadraticAttenuation()
void setQuadraticAttenuation |
( |
float |
quadraticAttenuation | ) |
|
|
inline |
Set up quadratic attenuation.
- Parameters
-
quadraticAttenuation | quadraticAttenuation |
Definition at line 212 of file SceneLight.h.
◆ setSpecular()
void setSpecular |
( |
const Color4 & |
specular | ) |
|
|
inline |
Set specular light component.
- Parameters
-
Definition at line 107 of file SceneLight.h.
◆ setSpotCutOff()
void setSpotCutOff |
( |
float |
spotCutOff | ) |
|
|
inline |
◆ setSpotDirection()
void setSpotDirection |
( |
const Vector3 & |
spotDirection | ) |
|
|
inline |
Set spot direction.
- Parameters
-
spotDirection | spot direction |
Definition at line 137 of file SceneLight.h.
◆ setSpotExponent()
void setSpotExponent |
( |
float |
spotExponent | ) |
|
|
inline |
Set up spot exponent.
- Parameters
-
spotExponent | spot exponent |
Definition at line 152 of file SceneLight.h.
◆ ambient
◆ constantAttenuation
float constantAttenuation |
|
private |
◆ diffuse
◆ enabled
◆ id
◆ linearAttenuation
◆ position
◆ quadraticAttenuation
float quadraticAttenuation |
|
private |
◆ specular
◆ spotCutOff
◆ spotDirection
◆ spotExponent
◆ spotTo
The documentation for this class was generated from the following files:
- /home/andreas/Development/drewke.net/tdme2/src/tdme/engine/scene/SceneLight.h
- /home/andreas/Development/drewke.net/tdme2/src/tdme/engine/scene/SceneLight.cpp