#include <OGREInterfaces.h>
Inherits DigitalSpaces::DIObjectBase.
Public Member Functions | |
| const char * | getName () |
| Get the name of this object. | |
| void | addEntity (DIOGREEntity *iEnt, in_Vector3f *position, in_Quaternionf *orientation, in_Vector3f *scale) |
| Adds an Entity to the static geometry. | |
| void | addSceneNode (DIOGRESceneNode *node) |
| Adds all the Entity objects attached to a SceneNode and all it's children to the static geometry. | |
| void | build () |
| Build the geometry. | |
| void | destroy () |
| Destroys all the built geometry state (reverse of build). | |
| void | reset () |
| Clears any of the entities / nodes added to this geometry and destroys anything which has already been built. | |
| void | setRenderingDistance (float dist) |
| Sets the distance at which batches are no longer rendered. | |
| float | getRenderingDistance () |
| Gets the distance at which batches are no longer rendered. | |
| float | getSquaredRenderingDistance () |
| Gets the squared distance at which batches are no longer rendered. | |
| void | setVisible (bool visible) |
| Hides or shows all the batches. | |
| bool | isVisible () |
| Are the batches visible? | |
| void | setCastShadows (bool castShadows) |
| Sets whether this geometry should cast shadows. | |
| bool | getCastShadows () |
| Will the geometry from this object cast shadows? | |
| void | setRegionDimensions (in_Vector3f *size) |
| Sets the size of a single region of geometry. | |
| void | getRegionDimensions (out_Vector3f *size) |
| Gets the size of a single batch of geometry. | |
| void | setOrigin (in_Vector3f *origin) |
| Sets the origin of the geometry. | |
| void | getOrigin (out_Vector3f *origin) |
| Gets the origin of this geometry. | |
| void | setRenderQueueGroup (int queueID) |
| Sets the render queue group this object will be rendered through. | |
| int | getRenderQueueGroup () |
| Gets the queue group for this entity, see setRenderQueueGroup for full details. | |
| void | dump (const char *filename) |
| Iterator for iterating over contained regions. | |
| const char* DigitalSpaces::DIOGREStaticGeometry::getName | ( | ) |
Get the name of this object.
| void DigitalSpaces::DIOGREStaticGeometry::addEntity | ( | DIOGREEntity * | iEnt, | |
| in_Vector3f * | position, | |||
| in_Quaternionf * | orientation, | |||
| in_Vector3f * | scale | |||
| ) |
Adds an Entity to the static geometry.
| ent | The Entity to use as a definition (the Mesh and Materials referenced will be recorded for the build call). | |
| position | The world position at which to add this Entity | |
| orientation | The world orientation at which to add this Entity | |
| scale | The scale at which to add this entity |
| void DigitalSpaces::DIOGREStaticGeometry::addSceneNode | ( | DIOGRESceneNode * | node | ) |
Adds all the Entity objects attached to a SceneNode and all it's children to the static geometry.
Must be called before 'build'.
| node | Pointer to the node to use to provide a set of Entity templates |
| void DigitalSpaces::DIOGREStaticGeometry::build | ( | ) |
Build the geometry.
| void DigitalSpaces::DIOGREStaticGeometry::destroy | ( | ) |
Destroys all the built geometry state (reverse of build).
| void DigitalSpaces::DIOGREStaticGeometry::reset | ( | ) |
Clears any of the entities / nodes added to this geometry and destroys anything which has already been built.
| void DigitalSpaces::DIOGREStaticGeometry::setRenderingDistance | ( | float | dist | ) |
Sets the distance at which batches are no longer rendered.
| dist | Distance beyond which the batches will not be rendered (the default is 0, which means batches are always rendered). |
| float DigitalSpaces::DIOGREStaticGeometry::getRenderingDistance | ( | ) |
Gets the distance at which batches are no longer rendered.
| float DigitalSpaces::DIOGREStaticGeometry::getSquaredRenderingDistance | ( | ) |
Gets the squared distance at which batches are no longer rendered.
| void DigitalSpaces::DIOGREStaticGeometry::setVisible | ( | bool | visible | ) |
Hides or shows all the batches.
| bool DigitalSpaces::DIOGREStaticGeometry::isVisible | ( | ) |
Are the batches visible?
| void DigitalSpaces::DIOGREStaticGeometry::setCastShadows | ( | bool | castShadows | ) |
Sets whether this geometry should cast shadows.
| bool DigitalSpaces::DIOGREStaticGeometry::getCastShadows | ( | ) |
Will the geometry from this object cast shadows?
| void DigitalSpaces::DIOGREStaticGeometry::setRegionDimensions | ( | in_Vector3f * | size | ) |
Sets the size of a single region of geometry.
| size | Vector3 expressing the 3D size of each region. |
| void DigitalSpaces::DIOGREStaticGeometry::getRegionDimensions | ( | out_Vector3f * | size | ) |
Gets the size of a single batch of geometry.
| void DigitalSpaces::DIOGREStaticGeometry::setOrigin | ( | in_Vector3f * | origin | ) |
Sets the origin of the geometry.
| size | Vector3 expressing the 3D origin of the geometry. |
| void DigitalSpaces::DIOGREStaticGeometry::getOrigin | ( | out_Vector3f * | origin | ) |
Gets the origin of this geometry.
| void DigitalSpaces::DIOGREStaticGeometry::setRenderQueueGroup | ( | int | queueID | ) |
Sets the render queue group this object will be rendered through.
| queueID | Enumerated value of the queue group to use. |
| int DigitalSpaces::DIOGREStaticGeometry::getRenderQueueGroup | ( | ) |
Gets the queue group for this entity, see setRenderQueueGroup for full details.
| void DigitalSpaces::DIOGREStaticGeometry::dump | ( | const char * | filename | ) |
Iterator for iterating over contained regions.
Get an iterator over the regions in this geometry Dump the contents of this StaticGeometry to a file for diagnostic purposes.
1.5.6