
#include <gzEnvironment.h>
Inheritance diagram for gzEnvironment:

Public Member Functions | |
| gzEnvironment (const gzString &name=GZ_EMPTY_STRING) | |
| Constructor. | |
| virtual | ~gzEnvironment () |
| Destructor. | |
| GZ_DECLARE_TYPE_INTERFACE_EXPORT (1) | |
| virtual gzReference * | clone () const |
| Clone interface. | |
| virtual gzVoid | preTraverseAction (gzTraverseAction *actionclass, gzContext *context) |
| Called in the traversal process. | |
| virtual gzVoid | postTraverseAction (gzTraverseAction *actionclass, gzContext *context) |
| Called in the traversal process. | |
| gzVoid | addLight (gzLight *light) |
| Adds a light to the environment. | |
| gzVoid | removeLight (gzLight *light) |
| Removes the light from the scene graph. | |
| gzULong | getNumberOfLights () |
| Returns the number of lights connected to the scene. | |
| gzLight * | getLight (gzULong lightIndex) |
| Returns a light. | |
| gzVoid | addClipPlane (gzClip *clip) |
| Adds a clip plane to the environment. | |
| gzVoid | removeClipPlane (gzClip *clip) |
| Removes the clip plane from the environment. | |
| gzULong | getNumberOfClipPlanes () |
| Returns the number of clip planes added to the environment. | |
| gzClip * | getClipPlane (gzULong clipIndex) |
| Returns a clip plane. | |
| gzVoid | useFog (gzBool enable) |
| Specifies if fog are used. | |
| gzVoid | setFogMode (gzFogMode mode) |
| Sets the fog mode. | |
| gzVoid | setFogColor (const gzRGBA &color) |
| Sets the color for the fog. | |
| gzVoid | setFogDensity (gzFloat density) |
| Sets the density for the fog. | |
| gzVoid | setFogStart (gzFloat start) |
| Sets the start for the fog. | |
| gzVoid | setFogEnd (gzFloat end) |
| Sets the end for the fog. | |
Static Public Member Functions | |
| static gzVoid | resetLightStateIndex (gzContext *context) |
| static gzVoid | invalidateActiveLightState (gzContext *context) |
| static gzVoid | activateLightStateIndex (gzContext *context, gzULong index) |
| static gzVoid | setMainLightState (gzContext *context) |
| static gzVoid | resetClipStateIndex (gzContext *context) |
| static gzVoid | activateClipStateIndex (gzContext *context, gzULong index) |
| static gzVoid | resetFogStateIndex (gzContext *context) |
| static gzVoid | activateFogStateIndex (gzContext *context, gzULong index) |
| static gzVoid | setLightModel (gzContext *context) |
| Applies the context lighting model on the environment. | |
| static gzVoid | setTwoSideLighting (gzContext *context, gzBool on) |
| Activates/ deactivates two side lighting. | |
| static gzVoid | setLocalViewer (gzContext *context, gzBool on) |
| static gzVoid | setGlobalAmbientColor (gzContext *context, gzFloat red=0.2f, gzFloat green=0.2f, gzFloat blue=0.2f, gzFloat alpha=1.0f) |
| Sets the ambient color for the global environment. | |
It is possible to add light or create fog to get a more realistic environment.
cube.cpp, dbviewer.cpp, lod.cpp, materialDemo.cpp, mirror.cpp, shaders.cpp, skybox.cpp, and tree.cpp.
Definition at line 97 of file gzEnvironment.h.
|
|
Constructor.
Definition at line 104 of file gzEnvironment.h. |
|
|
Destructor.
Definition at line 107 of file gzEnvironment.h. |
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
Adds a clip plane to the environment.
|
|
|
Adds a light to the environment. It is possible to add several light sources to the same environment. These light sources will light all nodes which are below the environment node in the scene graph.
|
|
|
Clone interface.
Reimplemented from gzGroup. |
|
|
Returns a clip plane.
|
|
|
Returns a light.
|
|
|
Returns the number of clip planes added to the environment.
|
|
|
Returns the number of lights connected to the scene.
|
|
|
Reimplemented from gzGroup. |
|
|
|
|
||||||||||||
|
Called in the traversal process.
Reimplemented from gzNode. |
|
||||||||||||
|
Called in the traversal process.
Reimplemented from gzNode. |
|
|
Removes the clip plane from the environment.
|
|
|
Removes the light from the scene graph.
|
|
|
|
|
|
|
|
|
|
|
|
Sets the color for the fog.
|
|
|
Sets the density for the fog.
|
|
|
Sets the end for the fog.
|
|
|
Sets the fog mode.
|
|
|
Sets the start for the fog.
|
|
||||||||||||||||||||||||
|
Sets the ambient color for the global environment.
|
|
|
Applies the context lighting model on the environment.
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
Activates/ deactivates two side lighting.
|
|
|
Specifies if fog are used.
|