Drag[en]gine Game Engine  1.21
deSkinManager Class Reference

Skin Resource Manager. More...

#include <deSkinManager.h>

Inheritance diagram for deSkinManager:
deFileResourceManager deResourceManager

Public Member Functions

Constructors and Destructors
 deSkinManager (deEngine *engine)
 Create new skin resource manager linked to the given engine. More...
 
 ~deSkinManager ()
 Clean up skin resource manager and reports leaking resources. More...
 
Management
int GetSkinCount () const
 Count of skins. More...
 
deSkinGetRootSkin () const
 Root skin resource for iteration purpose. More...
 
deSkinGetSkinWith (const char *filename) const
 Skin with the given filename or NULL if not loaded yet. More...
 
deSkinGetSkinWith (deVirtualFileSystem *vfs, const char *filename) const
 Skin with the given filename or NULL if not loaded yet. More...
 
deSkinCreateSkin (const char *filename, deSkinBuilder &builder)
 Create new skin. More...
 
deSkinCreateSkin (deVirtualFileSystem *vfs, const char *filename, deSkinBuilder &builder)
 Create new skin. More...
 
deSkinLoadSkin (const char *filename, const char *basePath)
 Loads a skinfrom the given file relative to the given base path. More...
 
deSkinLoadSkin (deVirtualFileSystem *vfs, const char *filename, const char *basePath)
 Loads a skinfrom the given file relative to the given base path. More...
 
deSkinLoadDefault ()
 Loads the default skin. More...
 
void AddLoadedSkin (deSkin *skin)
 Add loaded and fully prepared skin. More...
 
void LoadPropertyResources (deSkin &skin)
 Load resources used in properties. More...
 
virtual void ReleaseLeakingResources ()
 Release leaking resources and report them. More...
 
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 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...
 
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...
 
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 deFileResourceManager
 deFileResourceManager (deEngine *engine, eResourceType type)
 Create file resource manager. More...
 
virtual ~deFileResourceManager ()
 Clean up resource manager. More...
 
bool FindFileForReading (decPath &path, const deVirtualFileSystem &vfs, const char *filename, const char *basePath) const
 Path to file relative to base path. More...
 
decBaseFileReaderOpenFileForReading (const deVirtualFileSystem &vfs, const char *filename) const
 Open file for reading using. More...
 
decBaseFileWriterOpenFileForWriting (const deVirtualFileSystem &vfs, const char *filename) const
 Open file for writing using. 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 SystemAnimatorLoad ()
 Animator System Peers of all stored resources have to be created. More...
 
virtual void SystemAnimatorUnload ()
 Animator 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)
 Output information message on the console. More...
 
void LogInfoFormat (const char *message,...)
 Output formated information message on the console. More...
 
void LogInfoFormatUsing (const char *message, va_list args)
 Output formated information message on the console. More...
 
void LogWarn (const char *message)
 Output warning message on the console. More...
 
void LogWarnFormat (const char *message,...)
 Output formated warning message on the console. More...
 
void LogWarnFormatUsing (const char *message, va_list args)
 Output formated warning message on the console. More...
 
void LogError (const char *message)
 Output error message on the console. More...
 
void LogErrorFormat (const char *message,...)
 Output formated error message on the console. More...
 
void LogErrorFormatUsing (const char *message, va_list args)
 Output formated error message on the console. More...
 
void LogException (const deException &exception)
 Output exception as error message on the console. More...
 

Additional Inherited Members

- Public Types inherited from deResourceManager
enum  eResourceType {
  ertAnimation , ertAnimator , ertAnimatorInstance , ertArchive ,
  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 , ertSkyInstance ,
  ertSmokeEmitter , ertSound , ertSoundLevelMeter , ertSpeaker ,
  ertSynthesizer , ertSynthesizerInstance , ertTouchSensor , ertVideo ,
  ertVideoPlayer , ertWorld
}
 Possible type of a resource manager. More...
 

Detailed Description

Skin Resource Manager.

Constructor & Destructor Documentation

◆ deSkinManager()

deSkinManager::deSkinManager ( deEngine engine)

Create new skin resource manager linked to the given engine.

◆ ~deSkinManager()

deSkinManager::~deSkinManager ( )

Clean up skin resource manager and reports leaking resources.

Member Function Documentation

◆ AddLoadedSkin()

void deSkinManager::AddLoadedSkin ( deSkin skin)

Add loaded and fully prepared skin.

This method is to be used only by the resource loader to add an skin that has been loaded asynchronously.

◆ CreateSkin() [1/2]

deSkin* deSkinManager::CreateSkin ( const char *  filename,
deSkinBuilder builder 
)

Create new skin.

◆ CreateSkin() [2/2]

deSkin* deSkinManager::CreateSkin ( deVirtualFileSystem vfs,
const char *  filename,
deSkinBuilder builder 
)

Create new skin.

◆ GetRootSkin()

deSkin* deSkinManager::GetRootSkin ( ) const

Root skin resource for iteration purpose.

◆ GetSkinCount()

int deSkinManager::GetSkinCount ( ) const

Count of skins.

◆ GetSkinWith() [1/2]

deSkin* deSkinManager::GetSkinWith ( const char *  filename) const

Skin with the given filename or NULL if not loaded yet.

◆ GetSkinWith() [2/2]

deSkin* deSkinManager::GetSkinWith ( deVirtualFileSystem vfs,
const char *  filename 
) const

Skin with the given filename or NULL if not loaded yet.

◆ LoadDefault()

deSkin* deSkinManager::LoadDefault ( )

Loads the default skin.

◆ LoadPropertyResources()

void deSkinManager::LoadPropertyResources ( deSkin skin)

Load resources used in properties.

◆ LoadSkin() [1/2]

deSkin* deSkinManager::LoadSkin ( const char *  filename,
const char *  basePath 
)

Loads a skinfrom the given file relative to the given base path.

◆ LoadSkin() [2/2]

deSkin* deSkinManager::LoadSkin ( deVirtualFileSystem vfs,
const char *  filename,
const char *  basePath 
)

Loads a skinfrom the given file relative to the given base path.

◆ ReleaseLeakingResources()

virtual void deSkinManager::ReleaseLeakingResources ( )
virtual

Release leaking resources and report them.

Reimplemented from deResourceManager.

◆ RemoveResource()

void deSkinManager::RemoveResource ( deResource resource)
virtual

Removes the given resource from the manager without freeing it.

Implements deResourceManager.

◆ SystemAudioLoad()

void deSkinManager::SystemAudioLoad ( )
virtual

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

Reimplemented from deResourceManager.

◆ SystemAudioUnload()

void deSkinManager::SystemAudioUnload ( )
virtual

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

Reimplemented from deResourceManager.

◆ SystemGraphicLoad()

void deSkinManager::SystemGraphicLoad ( )
virtual

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

Reimplemented from deResourceManager.

◆ SystemGraphicUnload()

void deSkinManager::SystemGraphicUnload ( )
virtual

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

Reimplemented from deResourceManager.

◆ SystemPhysicsLoad()

void deSkinManager::SystemPhysicsLoad ( )
virtual

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

Reimplemented from deResourceManager.

◆ SystemPhysicsUnload()

void deSkinManager::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: