Drag[en]gine Game Engine
1.21
|
Renderable World Class. More...
#include <deWorld.h>
Public Types | |
typedef deTObjectReference< deWorld > | Ref |
Type holding strong reference. More... | |
Public Types inherited from deResource | |
typedef deTObjectReference< deResource > | Ref |
Type holding strong reference. More... | |
Public Types inherited from deObject | |
typedef deTObjectReference< deObject > | Ref |
Type holding strong reference. More... | |
Public Member Functions | |
Management | |
void | Clear () |
Removes all objects from the world. More... | |
deHeightTerrain * | GetHeightTerrain () const |
Assigned height terrain or NULL. More... | |
void | SetHeightTerrain (deHeightTerrain *heightTerrain) |
Set assigned height terrain or NULL to remove it. More... | |
const decDVector & | GetSize () const |
Size of the world. More... | |
void | SetSize (const decDVector &size) |
Set size of the world. More... | |
const decVector & | GetGravity () const |
World gravity vector. More... | |
void | SetGravity (const decVector &gravity) |
Set world gravity vector. More... | |
bool | GetDisableLights () const |
Determines if all lights are disables. More... | |
void | SetDisableLights (bool disable) |
Sets if all lights are disabled. More... | |
const decColor & | GetAmbientLight () const |
Ambient light color. More... | |
void | SetAmbientLight (const decColor &color) |
Set ambient light color. More... | |
const decMatrix & | GetLightColorMatrix () const |
Light color matrix. More... | |
void | SetLightColorMatrix (const decMatrix &matrix) |
Set light color matrix. More... | |
float | GetSpeakerGain () const |
Gain to multiply all speakers with. More... | |
void | SetSpeakerGain (float gain) |
Set gain to multiply all speakers with. More... | |
void | Update (float elapsed) |
Update dynamic world parts. More... | |
void | ProcessPhysics (float elapsed) |
Process physics simulation using the physics module. More... | |
Skies | |
int | GetSkyCount () const |
Count of skies. More... | |
deSkyInstance * | GetRootSky () const |
Root sky or NULL if there are none. More... | |
void | AddSky (deSkyInstance *sky) |
Add sky. More... | |
void | RemoveSky (deSkyInstance *sky) |
Remove sky. More... | |
void | RemoveAllSkies () |
Remove all skies. More... | |
Billboards | |
int | GetBillboardCount () const |
Count of billboards. More... | |
deBillboard * | GetRootBillboard () const |
Root billboard or NULL if there are none. More... | |
void | AddBillboard (deBillboard *billboard) |
Add billboard. More... | |
void | RemoveBillboard (deBillboard *billboard) |
Remove billboard. More... | |
void | RemoveAllBillboards () |
Remove all billboards. More... | |
Cameras | |
int | GetCameraCount () const |
Count of cameras. More... | |
deCamera * | GetRootCamera () const |
Root camera or NULL if there are none. More... | |
void | AddCamera (deCamera *camera) |
Add camera. More... | |
void | RemoveCamera (deCamera *camera) |
Remove camera. More... | |
void | RemoveAllCameras () |
Remove all cameras. More... | |
Colliders | |
int | GetColliderCount () const |
Count of colliders. More... | |
deCollider * | GetRootCollider () const |
Root collider or NULL if there are none. More... | |
void | AddCollider (deCollider *collider) |
Add collider. More... | |
void | RemoveCollider (deCollider *collider) |
Remove collider. More... | |
void | RemoveAllColliders () |
Remove all colliders. More... | |
Components | |
int | GetComponentCount () const |
Count of components. More... | |
deComponent * | GetRootComponent () const |
Root component or NULL if there are none. More... | |
void | AddComponent (deComponent *component) |
Add component. More... | |
void | RemoveComponent (deComponent *component) |
Remove component. More... | |
void | RemoveAllComponents () |
Remove all components. More... | |
Debug drawers | |
int | GetDebugDrawerCount () const |
Count of debug drawers. More... | |
deDebugDrawer * | GetRootDebugDrawer () const |
Root debug drawer or NULL if there are none. More... | |
void | AddDebugDrawer (deDebugDrawer *debugDrawer) |
Add debugDrawer. More... | |
void | RemoveDebugDrawer (deDebugDrawer *debugDrawer) |
Remove debugDrawer. More... | |
void | RemoveAllDebugDrawers () |
Remove all debug drawers. More... | |
Environment map probes. | |
int | GetEnvMapProbeCount () const |
Count of environment map probes. More... | |
deEnvMapProbe * | GetRootEnvMapProbe () const |
Root environment map probe or NULL if there are none. More... | |
void | AddEnvMapProbe (deEnvMapProbe *envMapProbe) |
Add environment map probe. More... | |
void | RemoveEnvMapProbe (deEnvMapProbe *envMapProbe) |
Remove environment map probe. More... | |
void | RemoveAllEnvMapProbes () |
Remove all environment map probes. More... | |
Force fields | |
int | GetForceFieldCount () const |
Count of force fields. More... | |
deForceField * | GetRootForceField () const |
Root force field or NULL if there are none. More... | |
void | AddForceField (deForceField *forceField) |
Add force field. More... | |
void | RemoveForceField (deForceField *forceField) |
Remove force field. More... | |
void | RemoveAllForceFields () |
Remove all force fields. More... | |
Lights | |
int | GetLightCount () const |
Count of lights. More... | |
deLight * | GetRootLight () const |
Root light or NULL if there are none. More... | |
void | AddLight (deLight *light) |
Add light. More... | |
void | RemoveLight (deLight *light) |
Remove light. More... | |
void | RemoveAllLights () |
Remove all lights. More... | |
Lumimeters | |
int | GetLumimeterCount () const |
Count of lumimeters. More... | |
deLumimeter * | GetRootLumimeter () const |
Root lumimeter or NULL if there are none. More... | |
void | AddLumimeter (deLumimeter *lumimeter) |
Add lumimeter. More... | |
void | RemoveLumimeter (deLumimeter *lumimeter) |
Remove lumimeter. More... | |
void | RemoveAllLumimeters () |
Remove all lumimeters. More... | |
Microphones | |
int | GetMicrophoneCount () const |
Count of microphones. More... | |
deMicrophone * | GetRootMicrophone () const |
Root microphone or NULL if there are none. More... | |
void | AddMicrophone (deMicrophone *microphone) |
Add microphone. More... | |
void | RemoveMicrophone (deMicrophone *microphone) |
Remove microphone. More... | |
void | RemoveAllMicrophones () |
Remove all microphones. More... | |
Navigation spaces | |
int | GetNavigationSpaceCount () const |
Count of navigation spaces. More... | |
deNavigationSpace * | GetRootNavigationSpace () const |
Root navigation space or NULL if there are none. More... | |
void | AddNavigationSpace (deNavigationSpace *navigationSpace) |
Add navigation space. More... | |
void | RemoveNavigationSpace (deNavigationSpace *navigationSpace) |
Remove navigation space. More... | |
void | RemoveAllNavigationSpaces () |
Remove all navigation spaces. More... | |
Navigation blockers | |
int | GetNavigationBlockerCount () const |
Count of navigation blockers. More... | |
deNavigationBlocker * | GetRootNavigationBlocker () const |
Root navigation blocker or NULL if there are none. More... | |
void | AddNavigationBlocker (deNavigationBlocker *navigationBlocker) |
Add navigation blocker. More... | |
void | RemoveNavigationBlocker (deNavigationBlocker *navigationBlocker) |
Remove navigation blocker. More... | |
void | RemoveAllNavigationBlockers () |
Remove all navigation blockers. More... | |
Navigators | |
int | GetNavigatorCount () const |
Count of navigators. More... | |
deNavigator * | GetRootNavigator () const |
Root navigator or NULL if there are none. More... | |
void | AddNavigator (deNavigator *navigator) |
Add navigator. More... | |
void | RemoveNavigator (deNavigator *navigator) |
Remove navigator. More... | |
void | RemoveAllNavigators () |
Remove all navigators. More... | |
Network states | |
int | GetNetworkStateCount () const |
Count of network states. More... | |
deNetworkState * | GetRootNetworkState () const |
Root network state or NULL if there are none. More... | |
void | AddNetworkState (deNetworkState *networkState) |
Add network state. More... | |
void | RemoveNetworkState (deNetworkState *networkState) |
Remove network state. More... | |
void | RemoveAllNetworkStates () |
Remove all network states. More... | |
Particle emitters | |
int | GetParticleEmitterCount () const |
Count of particle emitters. More... | |
deParticleEmitterInstance * | GetRootParticleEmitter () const |
Root particle emitter or NULL if there are none. More... | |
void | AddParticleEmitter (deParticleEmitterInstance *particleEmitter) |
Add particle emitter. More... | |
void | RemoveParticleEmitter (deParticleEmitterInstance *particleEmitter) |
Remove particle emitter. More... | |
void | RemoveAllParticleEmitters () |
Remove all particle emitters. More... | |
Prop fields | |
int | GetPropFieldCount () const |
Count of prop fields. More... | |
dePropField * | GetRootPropField () const |
Root prop field or NULL if there are none. More... | |
void | AddPropField (dePropField *propField) |
Add prop field. More... | |
void | RemovePropField (dePropField *propField) |
Remove prop field. More... | |
void | RemoveAllPropFields () |
Remove all prop fields. More... | |
Speakers | |
int | GetSpeakerCount () const |
Count of speakers. More... | |
deSpeaker * | GetRootSpeaker () const |
Root speaker or NULL if there are none. More... | |
void | AddSpeaker (deSpeaker *speaker) |
Add speaker. More... | |
void | RemoveSpeaker (deSpeaker *speaker) |
Remove speaker. More... | |
void | RemoveAllSpeakers () |
Remove all speakers. More... | |
Sound level meters | |
int | GetSoundLevelMeterCount () const |
Count of sound level meters. More... | |
deSoundLevelMeter * | GetRootSoundLevelMeter () const |
Root sound level meter or NULL if there are none. More... | |
void | AddSoundLevelMeter (deSoundLevelMeter *soundLevelMeter) |
Add sound level meter. More... | |
void | RemoveSoundLevelMeter (deSoundLevelMeter *soundLevelMeter) |
Remove sound level meter. More... | |
void | RemoveAllSoundLevelMeters () |
Remove all sound level meters. More... | |
Touch sensors | |
int | GetTouchSensorCount () const |
Count of touch sensors. More... | |
deTouchSensor * | GetRootTouchSensor () const |
Root touch sensor or NULL if there are none. More... | |
void | AddTouchSensor (deTouchSensor *touchSensor) |
Add touch sensor. More... | |
void | RemoveTouchSensor (deTouchSensor *touchSensor) |
Remove touch sensor. More... | |
void | RemoveAllTouchSensors () |
Remove all touch sensors. More... | |
Smoke emitters | |
int | GetSmokeEmitterCount () const |
Count of smoke emitters. More... | |
deSmokeEmitter * | GetRootSmokeEmitter () const |
Root smoke emitter or NULL if there are none. More... | |
void | AddSmokeEmitter (deSmokeEmitter *smokeEmitter) |
Add smoke emitter. More... | |
void | RemoveSmokeEmitter (deSmokeEmitter *smokeEmitter) |
Remove smoke emitter. More... | |
void | RemoveAllSmokeEmitters () |
Remove all smoke emitters. More... | |
Collision Detection | |
void | PointHits (const decDVector &point, deBaseScriptingCollider *listener, const decCollisionFilter &collisionFilter) |
Test a point for collision with colliders. More... | |
void | RayHits (const decDVector &rayOrigin, const decVector &rayDirection, deBaseScriptingCollider *listener, const decCollisionFilter &collisionFilter) |
Tests a ray for collision with the element in the world. More... | |
void | ColliderHits (deCollider *collider, deBaseScriptingCollider *listener) |
Tests the collider for collision with world elements. More... | |
void | ColliderMoveHits (deCollider *collider, const decVector &displacement, deBaseScriptingCollider *listener) |
Tests the moving collider for collision with world elements. More... | |
void | ColliderRotateHits (deCollider *collider, const decVector &rotation, deBaseScriptingCollider *listener) |
Tests the rotating collider for collision with world elements. More... | |
void | ColliderMoveRotateHits (deCollider *collider, const decVector &displacement, const decVector &rotation, deBaseScriptingCollider *listener) |
Tests the moving and rotating collider for collision with world elements. More... | |
Public Member Functions inherited from deResource | |
deResourceManager * | GetResourceManager () const |
Resource manager or NULL if resource is leaking. More... | |
deEngine * | GetEngine () const |
Game engine object from resource manager. More... | |
deResource * | GetLLManagerPrev () const |
Previous resource in the resource manager linked list. More... | |
void | SetLLManagerPrev (deResource *resource) |
Set next resource in the resource manager linked list. More... | |
deResource * | GetLLManagerNext () const |
Next resource in the resource manager linked list. More... | |
void | SetLLManagerNext (deResource *resource) |
Set next resource in the resource manager linked list. More... | |
void | MarkLeaking () |
Marks the resource leaking. More... | |
deResource (deResourceManager *resourceManager) | |
Create resource. More... | |
Public Member Functions inherited from deObject | |
int | GetRefCount () const |
Reference count. More... | |
void | AddReference () |
Add reference increasing reference count by 1. More... | |
void | FreeReference () |
Decrease reference count by one and delete object if count reaches 0. More... | |
deObject () | |
Create object with reference count of 1. More... | |
Constructors and Destructors | |
deWorld (deWorldManager *manager) | |
Create new world object with the given resource manager. More... | |
virtual | ~deWorld () |
Clean up world. More... | |
System Peers | |
deBaseGraphicWorld * | GetPeerGraphic () const |
Graphic system peer object. More... | |
void | SetPeerGraphic (deBaseGraphicWorld *peer) |
Set graphic system peer object. More... | |
deBasePhysicsWorld * | GetPeerPhysics () const |
Physics system peer object. More... | |
void | SetPeerPhysics (deBasePhysicsWorld *peer) |
Set physics system peer object. More... | |
deBaseAudioWorld * | GetPeerAudio () const |
Audio system peer object. More... | |
void | SetPeerAudio (deBaseAudioWorld *peer) |
Set audio system peer object. More... | |
deBaseNetworkWorld * | GetPeerNetwork () const |
Network system peer object. More... | |
void | SetPeerNetwork (deBaseNetworkWorld *peer) |
Set network system peer object. More... | |
deBaseAIWorld * | GetPeerAI () const |
Ai system peer object. More... | |
void | SetPeerAI (deBaseAIWorld *peer) |
Set ai system peer object. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from deResource | |
virtual | ~deResource () |
Clean up resource. More... | |
Protected Member Functions inherited from deObject | |
virtual | ~deObject () |
Clean up object. More... | |
Renderable World Class.
Worlds are the top most class for rendering 3d worldries. They bundle a set of World objects and a Sky object. Besides rendering they also are able to do collision detection and physical responses to them.
typedef deTObjectReference<deWorld> deWorld::Ref |
Type holding strong reference.
deWorld::deWorld | ( | deWorldManager * | manager | ) |
Create new world object with the given resource manager.
|
protectedvirtual |
Clean up world.
void deWorld::AddBillboard | ( | deBillboard * | billboard | ) |
Add billboard.
deeInvalidParam | billboard is NULL. |
deeInvalidParam | billboard has a parent world. |
void deWorld::AddCamera | ( | deCamera * | camera | ) |
Add camera.
deeInvalidParam | camera is NULL. |
deeInvalidParam | camera has a parent world. |
void deWorld::AddCollider | ( | deCollider * | collider | ) |
Add collider.
deeInvalidParam | collider is NULL. |
deeInvalidParam | collider has a parent world. |
void deWorld::AddComponent | ( | deComponent * | component | ) |
Add component.
deeInvalidParam | component is NULL. |
deeInvalidParam | component has a parent world. |
void deWorld::AddDebugDrawer | ( | deDebugDrawer * | debugDrawer | ) |
Add debugDrawer.
deeInvalidParam | debugDrawer is NULL. |
deeInvalidParam | debugDrawer has a parent world. |
void deWorld::AddEnvMapProbe | ( | deEnvMapProbe * | envMapProbe | ) |
Add environment map probe.
deeInvalidParam | envMapProbe is NULL. |
deeInvalidParam | envMapProbe has a parent world. |
void deWorld::AddForceField | ( | deForceField * | forceField | ) |
Add force field.
deeInvalidParam | forceField is NULL. |
deeInvalidParam | forceField has a parent world. |
void deWorld::AddLight | ( | deLight * | light | ) |
Add light.
deeInvalidParam | light is NULL. |
deeInvalidParam | light has a parent world. |
void deWorld::AddLumimeter | ( | deLumimeter * | lumimeter | ) |
Add lumimeter.
deeInvalidParam | lumimeter is NULL. |
deeInvalidParam | lumimeter has a parent world. |
void deWorld::AddMicrophone | ( | deMicrophone * | microphone | ) |
Add microphone.
deeInvalidParam | microphone is NULL. |
deeInvalidParam | microphone has a parent world. |
void deWorld::AddNavigationBlocker | ( | deNavigationBlocker * | navigationBlocker | ) |
Add navigation blocker.
deeInvalidParam | navigationBlocker is NULL. |
deeInvalidParam | navigationBlocker has a parent world. |
void deWorld::AddNavigationSpace | ( | deNavigationSpace * | navigationSpace | ) |
Add navigation space.
deeInvalidParam | navigationSpace is NULL. |
deeInvalidParam | navigationSpace has a parent world. |
void deWorld::AddNavigator | ( | deNavigator * | navigator | ) |
Add navigator.
deeInvalidParam | navigator is NULL. |
deeInvalidParam | navigator has a parent world. |
void deWorld::AddNetworkState | ( | deNetworkState * | networkState | ) |
Add network state.
deeInvalidParam | networkState is NULL. |
deeInvalidParam | networkState has a parent world. |
void deWorld::AddParticleEmitter | ( | deParticleEmitterInstance * | particleEmitter | ) |
Add particle emitter.
deeInvalidParam | particleEmitter is NULL. |
deeInvalidParam | particleEmitter has a parent world. |
void deWorld::AddPropField | ( | dePropField * | propField | ) |
Add prop field.
deeInvalidParam | propField is NULL. |
deeInvalidParam | propField has a parent world. |
void deWorld::AddSky | ( | deSkyInstance * | sky | ) |
Add sky.
deeInvalidParam | sky is NULL. |
deeInvalidParam | sky has a parent world. |
void deWorld::AddSmokeEmitter | ( | deSmokeEmitter * | smokeEmitter | ) |
Add smoke emitter.
deeInvalidParam | smokeEmitter is NULL. |
deeInvalidParam | smokeEmitter has a parent world. |
void deWorld::AddSoundLevelMeter | ( | deSoundLevelMeter * | soundLevelMeter | ) |
Add sound level meter.
deeInvalidParam | soundLevelMeter is NULL. |
deeInvalidParam | soundLevelMeter has a parent world. |
void deWorld::AddSpeaker | ( | deSpeaker * | speaker | ) |
Add speaker.
deeInvalidParam | speaker is NULL. |
deeInvalidParam | speaker has a parent world. |
void deWorld::AddTouchSensor | ( | deTouchSensor * | touchSensor | ) |
Add touch sensor.
deeInvalidParam | touchSensor is NULL. |
deeInvalidParam | touchSensor has a parent world. |
void deWorld::Clear | ( | ) |
Removes all objects from the world.
void deWorld::ColliderHits | ( | deCollider * | collider, |
deBaseScriptingCollider * | listener | ||
) |
Tests the collider for collision with world elements.
For each collision the collisionResponse function of the listener is called. To stop testing set StopTesting in the provided collision information object to true.
void deWorld::ColliderMoveHits | ( | deCollider * | collider, |
const decVector & | displacement, | ||
deBaseScriptingCollider * | listener | ||
) |
Tests the moving collider for collision with world elements.
For each collision starting with the earliest the collisionResponse function of the listener is called. To stop testing set StopTesting in the provided collision information object to true.
void deWorld::ColliderMoveRotateHits | ( | deCollider * | collider, |
const decVector & | displacement, | ||
const decVector & | rotation, | ||
deBaseScriptingCollider * | listener | ||
) |
Tests the moving and rotating collider for collision with world elements.
For each collision starting with the earliest the collisionResponse function of the listener is called. To stop testing set StopTesting in the provided collision information object to true.
void deWorld::ColliderRotateHits | ( | deCollider * | collider, |
const decVector & | rotation, | ||
deBaseScriptingCollider * | listener | ||
) |
Tests the rotating collider for collision with world elements.
For each collision starting with the earliest the collisionResponse function of the listener is called. To stop testing set StopTesting in the provided collision information object to true.
|
inline |
Ambient light color.
|
inline |
Count of billboards.
|
inline |
Count of cameras.
|
inline |
Count of colliders.
|
inline |
Count of components.
|
inline |
Count of debug drawers.
|
inline |
Determines if all lights are disables.
|
inline |
Count of environment map probes.
|
inline |
Count of force fields.
|
inline |
World gravity vector.
|
inline |
Assigned height terrain or NULL.
|
inline |
Light color matrix.
|
inline |
Count of lights.
|
inline |
Count of lumimeters.
|
inline |
Count of microphones.
|
inline |
Count of navigation blockers.
|
inline |
Count of navigation spaces.
|
inline |
Count of navigators.
|
inline |
Count of network states.
|
inline |
Count of particle emitters.
|
inline |
Ai system peer object.
|
inline |
Audio system peer object.
|
inline |
Graphic system peer object.
|
inline |
Network system peer object.
|
inline |
Physics system peer object.
|
inline |
Count of prop fields.
|
inline |
Root billboard or NULL if there are none.
|
inline |
Root camera or NULL if there are none.
|
inline |
Root collider or NULL if there are none.
|
inline |
Root component or NULL if there are none.
|
inline |
Root debug drawer or NULL if there are none.
|
inline |
Root environment map probe or NULL if there are none.
|
inline |
Root force field or NULL if there are none.
|
inline |
Root light or NULL if there are none.
|
inline |
Root lumimeter or NULL if there are none.
|
inline |
Root microphone or NULL if there are none.
|
inline |
Root navigation blocker or NULL if there are none.
|
inline |
Root navigation space or NULL if there are none.
|
inline |
Root navigator or NULL if there are none.
|
inline |
Root network state or NULL if there are none.
|
inline |
Root particle emitter or NULL if there are none.
|
inline |
Root prop field or NULL if there are none.
|
inline |
Root sky or NULL if there are none.
|
inline |
Root smoke emitter or NULL if there are none.
|
inline |
Root sound level meter or NULL if there are none.
|
inline |
Root speaker or NULL if there are none.
|
inline |
Root touch sensor or NULL if there are none.
|
inline |
Size of the world.
|
inline |
Count of skies.
|
inline |
Count of smoke emitters.
|
inline |
Count of sound level meters.
|
inline |
Count of speakers.
|
inline |
Gain to multiply all speakers with.
|
inline |
Count of touch sensors.
void deWorld::PointHits | ( | const decDVector & | point, |
deBaseScriptingCollider * | listener, | ||
const decCollisionFilter & | collisionFilter | ||
) |
Test a point for collision with colliders.
For each collision the collisionResponse function the given listener is called. To stop testing set StopTesting in the provided collision information object to true.
void deWorld::ProcessPhysics | ( | float | elapsed | ) |
Process physics simulation using the physics module.
Apply collision detection on moving kinematic collider, physical simulation on dynamic colliders, particle and prop field simulations as well as moving colliders attached to other colliders.
void deWorld::RayHits | ( | const decDVector & | rayOrigin, |
const decVector & | rayDirection, | ||
deBaseScriptingCollider * | listener, | ||
const decCollisionFilter & | collisionFilter | ||
) |
Tests a ray for collision with the element in the world.
For each collision the collisionResponse function the given listener is called. To stop testing set StopTesting in the provided collision information object to true.
void deWorld::RemoveAllBillboards | ( | ) |
Remove all billboards.
void deWorld::RemoveAllCameras | ( | ) |
Remove all cameras.
void deWorld::RemoveAllColliders | ( | ) |
Remove all colliders.
void deWorld::RemoveAllComponents | ( | ) |
Remove all components.
void deWorld::RemoveAllDebugDrawers | ( | ) |
Remove all debug drawers.
void deWorld::RemoveAllEnvMapProbes | ( | ) |
Remove all environment map probes.
void deWorld::RemoveAllForceFields | ( | ) |
Remove all force fields.
void deWorld::RemoveAllLights | ( | ) |
Remove all lights.
void deWorld::RemoveAllLumimeters | ( | ) |
Remove all lumimeters.
void deWorld::RemoveAllMicrophones | ( | ) |
Remove all microphones.
void deWorld::RemoveAllNavigationBlockers | ( | ) |
Remove all navigation blockers.
void deWorld::RemoveAllNavigationSpaces | ( | ) |
Remove all navigation spaces.
void deWorld::RemoveAllNavigators | ( | ) |
Remove all navigators.
void deWorld::RemoveAllNetworkStates | ( | ) |
Remove all network states.
void deWorld::RemoveAllParticleEmitters | ( | ) |
Remove all particle emitters.
void deWorld::RemoveAllPropFields | ( | ) |
Remove all prop fields.
void deWorld::RemoveAllSkies | ( | ) |
Remove all skies.
void deWorld::RemoveAllSmokeEmitters | ( | ) |
Remove all smoke emitters.
void deWorld::RemoveAllSoundLevelMeters | ( | ) |
Remove all sound level meters.
void deWorld::RemoveAllSpeakers | ( | ) |
Remove all speakers.
void deWorld::RemoveAllTouchSensors | ( | ) |
Remove all touch sensors.
void deWorld::RemoveBillboard | ( | deBillboard * | billboard | ) |
Remove billboard.
deeInvalidParam | billboard is NULL. |
deeInvalidParam | Parent world of billboard is not this world. |
void deWorld::RemoveCamera | ( | deCamera * | camera | ) |
Remove camera.
deeInvalidParam | camera is NULL. |
deeInvalidParam | Parent world of camera is not this world. |
void deWorld::RemoveCollider | ( | deCollider * | collider | ) |
Remove collider.
deeInvalidParam | collider is NULL. |
deeInvalidParam | Parent world of collider is not this world. |
void deWorld::RemoveComponent | ( | deComponent * | component | ) |
Remove component.
deeInvalidParam | component is NULL. |
deeInvalidParam | Parent world of component is not this world. |
void deWorld::RemoveDebugDrawer | ( | deDebugDrawer * | debugDrawer | ) |
Remove debugDrawer.
deeInvalidParam | debugDrawer is NULL. |
deeInvalidParam | Parent world of debugDrawer is not this world. |
void deWorld::RemoveEnvMapProbe | ( | deEnvMapProbe * | envMapProbe | ) |
Remove environment map probe.
deeInvalidParam | envMapProbe is NULL. |
deeInvalidParam | Parent world of envMapProbe is not this world. |
void deWorld::RemoveForceField | ( | deForceField * | forceField | ) |
Remove force field.
deeInvalidParam | forceField is NULL. |
deeInvalidParam | Parent world of forceField is not this world. |
void deWorld::RemoveLight | ( | deLight * | light | ) |
Remove light.
deeInvalidParam | light is NULL. |
deeInvalidParam | Parent world of light is not this world. |
void deWorld::RemoveLumimeter | ( | deLumimeter * | lumimeter | ) |
Remove lumimeter.
deeInvalidParam | lumimeter is NULL. |
deeInvalidParam | Parent world of lumimeter is not this world. |
void deWorld::RemoveMicrophone | ( | deMicrophone * | microphone | ) |
Remove microphone.
deeInvalidParam | microphone is NULL. |
deeInvalidParam | Parent world of microphone is not this world. |
void deWorld::RemoveNavigationBlocker | ( | deNavigationBlocker * | navigationBlocker | ) |
Remove navigation blocker.
deeInvalidParam | navigationBlocker is NULL. |
deeInvalidParam | Parent world of navigationBlocker is not this world. |
void deWorld::RemoveNavigationSpace | ( | deNavigationSpace * | navigationSpace | ) |
Remove navigation space.
deeInvalidParam | navigationSpace is NULL. |
deeInvalidParam | Parent world of navigationSpace is not this world. |
void deWorld::RemoveNavigator | ( | deNavigator * | navigator | ) |
Remove navigator.
deeInvalidParam | navigator is NULL. |
deeInvalidParam | Parent world of navigator is not this world. |
void deWorld::RemoveNetworkState | ( | deNetworkState * | networkState | ) |
Remove network state.
deeInvalidParam | networkState is NULL. |
deeInvalidParam | Parent world of networkState is not this world. |
void deWorld::RemoveParticleEmitter | ( | deParticleEmitterInstance * | particleEmitter | ) |
Remove particle emitter.
deeInvalidParam | particleEmitter is NULL. |
deeInvalidParam | Parent world of particleEmitter is not this world. |
void deWorld::RemovePropField | ( | dePropField * | propField | ) |
Remove prop field.
deeInvalidParam | propField is NULL. |
deeInvalidParam | Parent world of propField is not this world. |
void deWorld::RemoveSky | ( | deSkyInstance * | sky | ) |
Remove sky.
deeInvalidParam | sky is NULL. |
deeInvalidParam | Parent world of sky is not this world. |
void deWorld::RemoveSmokeEmitter | ( | deSmokeEmitter * | smokeEmitter | ) |
Remove smoke emitter.
deeInvalidParam | smokeEmitter is NULL. |
deeInvalidParam | Parent world of smokeEmitter is not this world. |
void deWorld::RemoveSoundLevelMeter | ( | deSoundLevelMeter * | soundLevelMeter | ) |
Remove sound level meter.
deeInvalidParam | soundLevelMeter is NULL. |
deeInvalidParam | Parent world of soundLevelMeter is not this world. |
void deWorld::RemoveSpeaker | ( | deSpeaker * | speaker | ) |
Remove speaker.
deeInvalidParam | speaker is NULL. |
deeInvalidParam | Parent world of speaker is not this world. |
void deWorld::RemoveTouchSensor | ( | deTouchSensor * | touchSensor | ) |
Remove touch sensor.
deeInvalidParam | touchSensor is NULL. |
deeInvalidParam | Parent world of touchSensor is not this world. |
void deWorld::SetAmbientLight | ( | const decColor & | color | ) |
Set ambient light color.
void deWorld::SetDisableLights | ( | bool | disable | ) |
Sets if all lights are disabled.
void deWorld::SetGravity | ( | const decVector & | gravity | ) |
Set world gravity vector.
void deWorld::SetHeightTerrain | ( | deHeightTerrain * | heightTerrain | ) |
Set assigned height terrain or NULL to remove it.
void deWorld::SetLightColorMatrix | ( | const decMatrix & | matrix | ) |
Set light color matrix.
void deWorld::SetPeerAI | ( | deBaseAIWorld * | peer | ) |
Set ai system peer object.
void deWorld::SetPeerAudio | ( | deBaseAudioWorld * | peer | ) |
Set audio system peer object.
void deWorld::SetPeerGraphic | ( | deBaseGraphicWorld * | peer | ) |
Set graphic system peer object.
void deWorld::SetPeerNetwork | ( | deBaseNetworkWorld * | peer | ) |
Set network system peer object.
void deWorld::SetPeerPhysics | ( | deBasePhysicsWorld * | peer | ) |
Set physics system peer object.
void deWorld::SetSize | ( | const decDVector & | size | ) |
Set size of the world.
void deWorld::SetSpeakerGain | ( | float | gain | ) |
Set gain to multiply all speakers with.
void deWorld::Update | ( | float | elapsed | ) |
Update dynamic world parts.
This includes sending a notification to the graphic system peer to update internal data structures. Objects beeing part of the world are not updated with this call. This is to avoid slowing the engine down if a huge amount of objects are in the world.
elapsed | Seconds elapsed since the last update |