Drag[en]gine Game Engine  1.0
deComponentManager Class Reference

Scene Component Resource Manager. More...

#include <deComponentManager.h>

Inheritance diagram for deComponentManager:
deResourceManager

Public Member Functions

Constructors and Destructors
 deComponentManager (deEngine *engine)
 
virtual ~deComponentManager ()
 
Management
int GetComponentCount () const
 
deComponentGetRootComponent () const
 
deComponentCreateComponent (deModel *model, deSkin *skin)
 
virtual void ReleaseLeakingResources ()
 
System Peer Management
void SystemGraphicLoad ()
 Graphic System Peers of all stored resources have to be created. More...
 
void SystemGraphicUnload ()
 Graphic System Peers of all stored resources have to be freed. More...
 
void SystemPhysicsLoad ()
 Physics System Peers of all stored resources have to be created. More...
 
void SystemPhysicsUnload ()
 Physics System Peers of all stored resources have to be freed. More...
 
void SystemAudioLoad ()
 Audio System Peers of all stored resources have to be created. More...
 
void SystemAudioUnload ()
 Audio System Peers of all stored resources have to be freed. More...
 
virtual void SystemAnimatorLoad ()
 Animator system peers of all stored resources have to be created. More...
 
virtual void SystemAnimatorUnload ()
 Animator system seers of all stored resources have to be freed. More...
 
Resource only Functions

Those functions are only for resource objects and should never be called directly from an application.

void RemoveResource (deResource *resource)
 Removes the given resource from the manager without freeing it. More...
 
- Public Member Functions inherited from deResourceManager
 deResourceManager (deEngine *engine, eResourceType type)
 Create resource manager. More...
 
virtual ~deResourceManager ()
 Clean up resource manager. More...
 
deEngineGetEngine () const
 Game engine. More...
 
int GetResourceType () const
 Resources type stored in this manager. More...
 
const decStringGetLoggingName () const
 Name to use as the source for this module for logging. More...
 
void SetLoggingName (const char *name)
 Set name to use as the source for this module for logging. More...
 
deModuleSystemGetModuleSystem () const
 
deGraphicSystemGetGraphicSystem () const
 
dePhysicsSystemGetPhysicsSystem () const
 
deAnimatorSystemGetAnimatorSystem () const
 
deSynthesizerSystemGetSynthesizerSystem () const
 
deAISystemGetAISystem () const
 
deAudioSystemGetAudioSystem () const
 
deNetworkSystemGetNetworkSystem () const
 
deScriptingSystemGetScriptingSystem () const
 
deImageManagerGetImageManager () const
 
deVideoManagerGetVideoManager () const
 
deSkinManagerGetSkinManager () const
 
virtual void SystemScriptingLoad ()
 Scripting System Peers of all stored resources have to be created. More...
 
virtual void SystemScriptingUnload ()
 Scripting System Peers of all stored resources have to be freed. More...
 
virtual void SystemNetworkLoad ()
 Network System Peers of all stored resources have to be created. More...
 
virtual void SystemNetworkUnload ()
 Network System Peers of all stored resources have to be freed. More...
 
virtual void SystemAILoad ()
 AI System Peers of all stored resources have to be created. More...
 
virtual void SystemAIUnload ()
 AI System Peers of all stored resources have to be freed. More...
 
virtual void SystemSynthesizerLoad ()
 Synthesizer system peers of all stored resources have to be created. More...
 
virtual void SystemSynthesizerUnload ()
 Synthesizer system peers of all stored resources have to be freed. More...
 
void LogInfo (const char *message)
 Outputs an information message on the console. More...
 
void LogInfoFormat (const char *message,...)
 Outputs a formated information message on the console. More...
 
void LogInfoFormatUsing (const char *message, va_list args)
 Outputs a formated information message on the console. More...
 
void LogWarn (const char *message)
 Outputs a warning message on the console. More...
 
void LogWarnFormat (const char *message,...)
 Outputs a formated warning message on the console. More...
 
void LogWarnFormatUsing (const char *message, va_list args)
 Outputs a formated warning message on the console. More...
 
void LogError (const char *message)
 Outputs an error message on the console. More...
 
void LogErrorFormat (const char *message,...)
 Outputs a formated error message on the console. More...
 
void LogErrorFormatUsing (const char *message, va_list args)
 Outputs a formated error message on the console. More...
 
void LogException (const deException &exception)
 Outputs an exception as error message on the console. More...
 

Additional Inherited Members

- Public Types inherited from deResourceManager
enum  eResourceType {
  ertAI, ertAnimation, ertAnimator, ertAnimatorInstance,
  ertBillboard, ertCanvas, ertCamera, ertCaptureCanvas,
  ertCollider, ertComponent, ertConnection, ertDecal,
  ertDebugDrawer, ertDynamicSkin, ertEffect, ertEnvMapProbe,
  ertFont, ertForceField, ertGraphicContext, ertHeightTerrain,
  ertImage, ertLanguagePack, ertLight, ertLocomotion,
  ertLumimeter, ertMicrophone, ertModel, ertNavigationBlocker,
  ertNavigationSpace, ertNavigator, ertNetworkState, ertOccluder,
  ertOcclusionMesh, ertParticleEmitter, ertParticleEmitterInstance, ertPropField,
  ertRenderTarget, ertRenderWindow, ertRig, ertScene,
  ertServer, ertSkin, ertSky, ertSmokeEmitter,
  ertSound, ertSpeaker, ertSynthesizer, ertSynthesizerInstance,
  ertTouchSensor, ertVideo, ertVideoPlayer, ertWorld
}
 Possible type of a resource manager. More...
 

Detailed Description

Scene Component Resource Manager.

Author
Pl├╝ss Roland
Version
1.0
Date
2008

Constructor & Destructor Documentation

◆ deComponentManager()

deComponentManager::deComponentManager ( deEngine engine)

Creates a new scene component resource manager linked to the given engine.

◆ ~deComponentManager()

virtual deComponentManager::~deComponentManager ( )
virtual

Cleans up the scene component resource manager and reports leaking resources.

Member Function Documentation

◆ CreateComponent()

deComponent* deComponentManager::CreateComponent ( deModel model,
deSkin skin 
)

Creates a new scene component with the given model and skin assigned.

◆ GetComponentCount()

int deComponentManager::GetComponentCount ( ) const

retrieves the count of scene components.

◆ GetRootComponent()

deComponent* deComponentManager::GetRootComponent ( ) const

Retrieves the root component resource for iteration purpose.

◆ ReleaseLeakingResources()

virtual void deComponentManager::ReleaseLeakingResources ( )
virtual

Release leaking resources and report them.

Reimplemented from deResourceManager.

◆ RemoveResource()

void deComponentManager::RemoveResource ( deResource resource)
virtual

Removes the given resource from the manager without freeing it.

Implements deResourceManager.

◆ SystemAnimatorLoad()

virtual void deComponentManager::SystemAnimatorLoad ( )
virtual

Animator system peers of all stored resources have to be created.

Reimplemented from deResourceManager.

◆ SystemAnimatorUnload()

virtual void deComponentManager::SystemAnimatorUnload ( )
virtual

Animator system seers of all stored resources have to be freed.

Reimplemented from deResourceManager.

◆ SystemAudioLoad()

void deComponentManager::SystemAudioLoad ( )
virtual

Audio System Peers of all stored resources have to be created.

Reimplemented from deResourceManager.

◆ SystemAudioUnload()

void deComponentManager::SystemAudioUnload ( )
virtual

Audio System Peers of all stored resources have to be freed.

Reimplemented from deResourceManager.

◆ SystemGraphicLoad()

void deComponentManager::SystemGraphicLoad ( )
virtual

Graphic System Peers of all stored resources have to be created.

Reimplemented from deResourceManager.

◆ SystemGraphicUnload()

void deComponentManager::SystemGraphicUnload ( )
virtual

Graphic System Peers of all stored resources have to be freed.

Reimplemented from deResourceManager.

◆ SystemPhysicsLoad()

void deComponentManager::SystemPhysicsLoad ( )
virtual

Physics System Peers of all stored resources have to be created.

Reimplemented from deResourceManager.

◆ SystemPhysicsUnload()

void deComponentManager::SystemPhysicsUnload ( )
virtual

Physics System Peers of all stored resources have to be freed.

Reimplemented from deResourceManager.


The documentation for this class was generated from the following file: