Sky Layer. More...
#include <deSkyLayer.h>
Public Member Functions | |
Constructors and Destructors | |
| deSkyLayer () | |
| Creates a new sky layer. | |
| ~deSkyLayer () | |
| Cleans up the sky layer. | |
Management | |
| const decVector & | GetPosition () const |
| Retrieves the position. | |
| void | SetPosition (const decVector &position) |
| Sets the position. | |
| const decQuaternion & | GetOrientation () const |
| Retrieves the orientation. | |
| void | SetOrientation (const decQuaternion &orientation) |
| Sets the orientation. | |
| const decVector & | GetSize () const |
| Retrieves the size. | |
| void | SetSize (const decVector &size) |
| Sets the size. | |
| const decColor & | GetColor () const |
| Retrieves the blending color. | |
| void | SetColor (const decColor &color) |
| Sets the blending color. | |
| float | GetIntensity () const |
| Retrieves the intensity. | |
| void | SetIntensity (float intensity) |
| Sets the intensity. | |
| float | GetTransparency () const |
| Retrieves the transparency. | |
| void | SetTransparency (float transparency) |
| Sets the transparency. | |
| deSkin * | GetSkin () const |
| Retrieves the skin or NULL if not set. | |
| void | SetSkin (deSkin *skin) |
| Sets the skin or NULL if not set. | |
| const decQuaternion & | GetLightOrientation () const |
| Retrieves the orientation of the sky light. | |
| void | SetLightOrientation (const decQuaternion &orientation) |
| Sets the orientation of the sky light. | |
| const decColor & | GetLightColor () const |
| Retrieves the color of the sky light. | |
| void | SetLightColor (const decColor &color) |
| Sets the color of the sky light. | |
| float | GetLightIntensity () const |
| Retrieves the intensity of the direct sky light. | |
| void | SetLightIntensity (float intensity) |
| Sets the intensity of the direct sky light. | |
| float | GetAmbientIntensity () const |
| Retrieves the intensity of the diffuse sky light. | |
| void | SetAmbientIntensity (float intensity) |
| Sets the intensity of the diffuse sky light. | |
Bodies | |
| int | GetBodyCount () const |
| Retrieves the number of bodies. | |
| deSkyLayerBody * | GetBodyAt (int index) const |
| Retrieves the body at the given index. | |
| int | IndexOfBody (deSkyLayerBody *body) const |
| Retrieves the index of the body or -1 if not found. | |
| bool | HasBody (deSkyLayerBody *body) const |
| Determines if a body exists. | |
| void | AddBody (deSkyLayerBody *body) |
| Adds a body. | |
| void | RemoveBody (deSkyLayerBody *body) |
| Removes a body. | |
| void | RemoveBodyAt (int index) |
| Removes the body at the given position. | |
| void | RemoveAllBodies () |
| Removes all bodies. | |
Sky Layer.
Sky layers define the content of the sky using one or more layers drawn ontop of each other. Each layer can be rotated individually. This way rich skies can be modeled using a simple system. The color parameter can be used to tint the content of a layer. The type of the sky is defined by the assigned skin. This way sky rendering can be enhanced without modifying the engine just the graphic module. The following types are recognized ( more can be defined by specific modules in the future ).
| deSkyLayer::deSkyLayer | ( | ) |
Creates a new sky layer.
| deSkyLayer::~deSkyLayer | ( | ) |
Cleans up the sky layer.
| void deSkyLayer::AddBody | ( | deSkyLayerBody * | body ) |
Adds a body.
| float deSkyLayer::GetAmbientIntensity | ( | ) | const [inline] |
Retrieves the intensity of the diffuse sky light.
| deSkyLayerBody* deSkyLayer::GetBodyAt | ( | int | index ) | const |
Retrieves the body at the given index.
| int deSkyLayer::GetBodyCount | ( | ) | const [inline] |
Retrieves the number of bodies.
| const decColor& deSkyLayer::GetColor | ( | ) | const [inline] |
Retrieves the blending color.
| float deSkyLayer::GetIntensity | ( | ) | const [inline] |
Retrieves the intensity.
| const decColor& deSkyLayer::GetLightColor | ( | ) | const [inline] |
Retrieves the color of the sky light.
| float deSkyLayer::GetLightIntensity | ( | ) | const [inline] |
Retrieves the intensity of the direct sky light.
| const decQuaternion& deSkyLayer::GetLightOrientation | ( | ) | const [inline] |
Retrieves the orientation of the sky light.
| const decQuaternion& deSkyLayer::GetOrientation | ( | ) | const [inline] |
Retrieves the orientation.
| const decVector& deSkyLayer::GetPosition | ( | ) | const [inline] |
Retrieves the position.
| const decVector& deSkyLayer::GetSize | ( | ) | const [inline] |
Retrieves the size.
| deSkin* deSkyLayer::GetSkin | ( | ) | const [inline] |
Retrieves the skin or NULL if not set.
| float deSkyLayer::GetTransparency | ( | ) | const [inline] |
Retrieves the transparency.
| bool deSkyLayer::HasBody | ( | deSkyLayerBody * | body ) | const |
Determines if a body exists.
| int deSkyLayer::IndexOfBody | ( | deSkyLayerBody * | body ) | const |
Retrieves the index of the body or -1 if not found.
| void deSkyLayer::RemoveAllBodies | ( | ) |
Removes all bodies.
| void deSkyLayer::RemoveBody | ( | deSkyLayerBody * | body ) |
Removes a body.
| void deSkyLayer::RemoveBodyAt | ( | int | index ) |
Removes the body at the given position.
| void deSkyLayer::SetAmbientIntensity | ( | float | intensity ) |
Sets the intensity of the diffuse sky light.
| void deSkyLayer::SetColor | ( | const decColor & | color ) |
Sets the blending color.
| void deSkyLayer::SetIntensity | ( | float | intensity ) |
Sets the intensity.
| void deSkyLayer::SetLightColor | ( | const decColor & | color ) |
Sets the color of the sky light.
| void deSkyLayer::SetLightIntensity | ( | float | intensity ) |
Sets the intensity of the direct sky light.
| void deSkyLayer::SetLightOrientation | ( | const decQuaternion & | orientation ) |
Sets the orientation of the sky light.
| void deSkyLayer::SetOrientation | ( | const decQuaternion & | orientation ) |
Sets the orientation.
| void deSkyLayer::SetPosition | ( | const decVector & | position ) |
Sets the position.
| void deSkyLayer::SetSize | ( | const decVector & | size ) |
Sets the size.
| void deSkyLayer::SetSkin | ( | deSkin * | skin ) |
Sets the skin or NULL if not set.
| void deSkyLayer::SetTransparency | ( | float | transparency ) |
Sets the transparency.
1.7.2