Drag[en]gine Game Engine  1.0
deOcclusionMeshManager Class Reference

Occlusion Mesh Manager. More...

#include <deOcclusionMeshManager.h>

Inheritance diagram for deOcclusionMeshManager:
deFileResourceManager deResourceManager

Public Member Functions

Constructors and Destructors
 deOcclusionMeshManager (deEngine *engine)
 
virtual ~deOcclusionMeshManager ()
 
Management
int GetOcclusionMeshCount () const
 
deOcclusionMeshGetRootOcclusionMesh () const
 
deOcclusionMeshGetOcclusionMeshWith (const char *filename) const
 
deOcclusionMeshGetOcclusionMeshWith (deVirtualFileSystem *vfs, const char *filename) const
 
deOcclusionMeshCreateOcclusionMesh (const char *filename, deOcclusionMeshBuilder &builder)
 
deOcclusionMeshCreateOcclusionMesh (deVirtualFileSystem *vfs, const char *filename, deOcclusionMeshBuilder &builder)
 
deOcclusionMeshLoadOcclusionMesh (const char *filename, const char *basePath)
 
deOcclusionMeshLoadOcclusionMesh (deVirtualFileSystem *vfs, const char *filename, const char *basePath)
 
void AddLoadedOcclusionMesh (deOcclusionMesh *occmesh)
 
virtual void ReleaseLeakingResources ()
 
System Peer Management
virtual void SystemGraphicLoad ()
 
virtual void SystemGraphicUnload ()
 
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 SystemPhysicsLoad ()
 Physics System Peers of all stored resources have to be created. More...
 
virtual void SystemPhysicsUnload ()
 Physics System Peers of all stored resources have to be freed. More...
 
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 SystemAudioLoad ()
 Audio System Peers of all stored resources have to be created. More...
 
virtual void SystemAudioUnload ()
 Audio 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

Occlusion Mesh Manager.

Author
Pl├╝ss Roland
Version
1.0
Date
2012

Constructor & Destructor Documentation

◆ deOcclusionMeshManager()

deOcclusionMeshManager::deOcclusionMeshManager ( deEngine engine)

Creates a new manager.

◆ ~deOcclusionMeshManager()

virtual deOcclusionMeshManager::~deOcclusionMeshManager ( )
virtual

Cleans up the manager.

Member Function Documentation

◆ AddLoadedOcclusionMesh()

void deOcclusionMeshManager::AddLoadedOcclusionMesh ( deOcclusionMesh occmesh)

Adds a loaded and fully prepared occlusion mesh. This method is to be used only by the resource loader to add an occlusion mesh that has been loaded asynchronously.

◆ CreateOcclusionMesh() [1/2]

deOcclusionMesh* deOcclusionMeshManager::CreateOcclusionMesh ( const char *  filename,
deOcclusionMeshBuilder builder 
)

Creates an occlusion mesh using a builder.

◆ CreateOcclusionMesh() [2/2]

deOcclusionMesh* deOcclusionMeshManager::CreateOcclusionMesh ( deVirtualFileSystem vfs,
const char *  filename,
deOcclusionMeshBuilder builder 
)

Creates an occlusion mesh using a builder.

◆ GetOcclusionMeshCount()

int deOcclusionMeshManager::GetOcclusionMeshCount ( ) const

retrieves the number of occlusion meshes.

◆ GetOcclusionMeshWith() [1/2]

deOcclusionMesh* deOcclusionMeshManager::GetOcclusionMeshWith ( const char *  filename) const

Retrieves the occlusion mesh with the given filename or NULL if not loaded yet.

◆ GetOcclusionMeshWith() [2/2]

deOcclusionMesh* deOcclusionMeshManager::GetOcclusionMeshWith ( deVirtualFileSystem vfs,
const char *  filename 
) const

Retrieves the occlusion mesh with the given filename or NULL if not loaded yet.

◆ GetRootOcclusionMesh()

deOcclusionMesh* deOcclusionMeshManager::GetRootOcclusionMesh ( ) const

Retrieves the root occlusion mesh for iteration purpose.

◆ LoadOcclusionMesh() [1/2]

deOcclusionMesh* deOcclusionMeshManager::LoadOcclusionMesh ( const char *  filename,
const char *  basePath 
)

Loads an occlusion mesh from the given file relative to the given base path.

◆ LoadOcclusionMesh() [2/2]

deOcclusionMesh* deOcclusionMeshManager::LoadOcclusionMesh ( deVirtualFileSystem vfs,
const char *  filename,
const char *  basePath 
)

Loads an occlusion mesh from the given file relative to the given base path.

◆ ReleaseLeakingResources()

virtual void deOcclusionMeshManager::ReleaseLeakingResources ( )
virtual

Release leaking resources and report them.

Reimplemented from deResourceManager.

◆ RemoveResource()

void deOcclusionMeshManager::RemoveResource ( deResource resource)
virtual

Removes the given resource from the manager without freeing it.

Implements deResourceManager.

◆ SystemGraphicLoad()

virtual void deOcclusionMeshManager::SystemGraphicLoad ( )
virtual

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

Reimplemented from deResourceManager.

◆ SystemGraphicUnload()

virtual void deOcclusionMeshManager::SystemGraphicUnload ( )
virtual

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

Reimplemented from deResourceManager.


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