|
| void | setType (LightTypes type) |
| | Sets the type of light - see LightTypes for more info.
|
| |
| LightTypes | getType () const |
| | Returns the light type.
|
| |
| void | setDiffuseColour (float r, float g, float b) |
| | Sets the color of the diffuse light given off by this source.
|
| |
| void | setDiffuseColour (const color &color) |
| | Sets the color of the diffuse light given off by this source.
|
| |
| const color & | getDiffuseColour () const |
| | Returns the color of the diffuse light given off by this light source (see setDiffuseColour for more info).
|
| |
| void | setSpecularColour (float r, float g, float b) |
| | Sets the color of the specular light given off by this source.
|
| |
| void | setSpecularColour (const color &color) |
| | Sets the color of the specular light given off by this source.
|
| |
| const color & | getSpecularColour () const |
| | Returns the color of specular light given off by this light source.
|
| |
| void | setAttenuation (float range, float constant, float linear, float quadratic) |
| | Sets the attenuation parameters for this light source.
|
| |
| float | getAttenuationRange () const |
| | Returns the absolute upper range of the light.
|
| |
| float | getAttenuationConstant () const |
| | Returns the constant factor in the attenuation formula.
|
| |
| float | getAttenuationLinear () const |
| | Returns the linear factor in the attenuation formula.
|
| |
| float | getAttenuationQuadric () const |
| | Returns the quadric factor in the attenuation formula.
|
| |
| void | setPosition (float x, float y, float z) |
| | Sets the position of the light.
|
| |
| void | setPosition (const vector3 &pos) |
| | Sets the position of the light.
|
| |
| const vector3 & | getPosition () const |
| | Returns the position of the light.
|
| |
| void | setDirection (float x, float y, float z) |
| | Sets the direction in which a light points.
|
| |
| void | setDirection (const vector3 &direction) |
| | Sets the direction in which a light points.
|
| |
| const vector3 & | getDirection () const |
| | Returns the light's direction.
|
| |
| void | setSpotlightRange (const radian &innerAngle, const radian &outerAngle, float falloff=1.0f) |
| | Sets the range of a spotlight, i.e.
|
| |
| const radian & | getSpotlightInnerAngle () const |
| | Returns the angle covered by the spotlights inner cone.
|
| |
| const radian & | getSpotlightOuterAngle () const |
| | Returns the angle covered by the spotlights outer cone.
|
| |
| float | getSpotlightFalloff () const |
| | Returns the falloff between the inner and outer cones of the spotlight.
|
| |
| void | setPowerScale (float power) |
| | Set a scaling factor to indicate the relative power of a light.
|
| |
| float | getPowerScale () const |
| | Returns the scaling factor which indicates the relative power of a light.
|
| |
| void | setCastShadows (bool enabled) |
| | Sets whether or not this light should cast shadows.
|
| |
| bool | getCastShadows () const |
| | Returns whether or not this light casts shadows.
|
| |
| const vector3 & | getDerivedPosition () const |
| | Gets the position of the light including any transform from nodes it is attached to.
|
| |
| const vector3 & | getDerivedDirection () const |
| | Gets the direction of the light including any transform from nodes it is attached to.
|
| |
| const string & | getName () const |
| | Returns the name of this object.
|
| |
| const string & | getMovableType () const |
| | Returns the type name of this object.
|
| |
| Node | getParentNode () const |
| | Returns the node to which this object is attached.
|
| |
| SceneNode | getParentSceneNode () const |
| | Returns the scene node to which this object is attached.
|
| |
| bool | isAttached () const |
| | Returns true if this object is attached to a SceneNode or TagPoint.
|
| |
| void | detachFromParent () |
| | Detaches an object from a parent SceneNode or TagPoint, if attached.
|
| |
| bool | isInScene () const |
| | Returns true if this object is attached to a SceneNode or TagPoint, and this SceneNode / TagPoint is currently in an active part of the scene graph.
|
| |
| float | getBoundingRadius () const |
| | Retrieves the radius of the origin-centered bounding sphere for this object.
|
| |
| void | setVisible (bool visible) |
| | Tells this object whether to be visible or not, if it has a renderable component.
|
| |
| bool | getVisible () const |
| | Gets this object whether to be visible or not, if it has a renderable component.
|
| |
| bool | isVisible () const |
| | Returns whether or not this object is supposed to be visible or not.
|
| |
| void | setRenderingDistance (float dist) |
| | Sets the distance at which the object is no longer rendered.
|
| |
| float | getRenderingDistance () const |
| | Gets the distance at which batches are no longer rendered.
|
| |
| void | setRenderingMinPixelSize (float pixelSize) |
| | Sets the minimum pixel size an object needs to be in both screen axes in order to be rendered.
|
| |
| float | getRenderingMinPixelSize () const |
| | Returns the minimum pixel size an object needs to be in both screen axes in order to be rendered.
|
| |
|
| const string & | getName (void) const |
| | Returns the name of this object.
|
| |
| const string & | getMovableType (void) const |
| | Returns the type name of this object.
|
| |
| Node * | getParentNode (void) const |
| | Returns the node to which this object is attached.
|
| |
| SceneNode | getParentSceneNode (void) const |
| | Returns the scene node to which this object is attached.
|
| |
| bool | isParentTagPoint () const |
| | Gets whether the parent node is a TagPoint (or a SceneNode)
|
| |
| bool | isAttached (void) const |
| | Returns true if this object is attached to a SceneNode or TagPoint.
|
| |
| void | detachFromParent (void) |
| | Detaches an object from a parent SceneNode or TagPoint, if attached.
|
| |
| bool | isInScene (void) const |
| | Returns true if this object is attached to a SceneNode or TagPoint, and this SceneNode / TagPoint is currently in an active part of the scene graph.
|
| |
| float | getBoundingRadius (void) const |
| | Retrieves the local axis-aligned bounding box for this object.
|
| |
| void | setVisible (bool visible) |
| | Tells this object whether to be visible or not, if it has a renderable component.
|
| |
| bool | getVisible (void) const |
| | Gets this object whether to be visible or not, if it has a renderable component.
|
| |
| bool | isVisible (void) const |
| | Returns whether or not this object is supposed to be visible or not.
|
| |
| void | setRenderingDistance (float dist) |
| | Sets the distance at which the object is no longer rendered.
|
| |
| float | getRenderingDistance (void) const |
| | Gets the distance at which batches are no longer rendered.
|
| |
| void | setRenderingMinPixelSize (float pixelSize) |
| | Sets the minimum pixel size an object needs to be in both screen axes in order to be rendered.
|
| |
| float | getRenderingMinPixelSize () const |
| | Returns the minimum pixel size an object needs to be in both screen axes in order to be rendered.
|
| |
| void | setCastShadows (bool enabled) |
| | Return an instance of user objects binding associated with this class.
|
| |
| bool | getCastShadows (void) const |
| | Returns whether shadow casting is enabled for this object.
|
| |
| void | setDebugDisplayEnabled (bool enabled) |
| | Sets whether or not the debug display of this object is enabled.
|
| |
| bool | isDebugDisplayEnabled (void) const |
| | Gets whether debug display of this object is enabled.
|
| |
Representation of a dynamic light source in the scene.
- Remember that simply creating a light and adding it to a scene does not make a scene brighter; the SceneManager must choose to interpret it. Use the SceneManager::setAmbientLight method to set the overall ambient light level. Use the Light methods to configure your individual lights.
Definition at line 33 of file AngelOgre_Light.h.