Drag[en]gine Game Engine
1.21
|
Video resource manager. More...
#include <deVideoManager.h>
Public Member Functions | |
Constructors and Destructors | |
deVideoManager (deEngine *engine) | |
Create video resource manager. More... | |
virtual | ~deVideoManager () |
Clean up video resource manager and reports leaking resources. More... | |
Management | |
int | GetVideoCount () const |
Number of videos. More... | |
deVideo * | GetRootVideo () const |
Root video resource for iteration purpose. More... | |
deVideo * | GetVideoWith (const char *filename) const |
Video with filename or NULL if not loaded yet. More... | |
deVideo * | GetVideoWith (deVirtualFileSystem *vfs, const char *filename) const |
Video with filename or NULL if not loaded yet. More... | |
deVideo * | LoadVideo (const char *filename, const char *basePath, bool asynchron) |
Load video from file relative to base path. More... | |
deVideo * | LoadVideo (deVirtualFileSystem *vfs, const char *filename, const char *basePath, bool asynchron) |
Load video from file relative to base path. More... | |
void | SaveVideo (deVideo *video, const char *filename) |
Save video to file. More... | |
void | SaveVideo (deVirtualFileSystem *vfs, deVideo *video, const char *filename) |
Save video to file. More... | |
void | AddLoadedVideo (deVideo *video) |
Add loaded video. More... | |
deVideoDecoder * | CreateDecoder (deVideo *video) |
Create video decoder. More... | |
deVideoAudioDecoder * | CreateAudioDecoder (deVideo *video) |
Create audio decoder or NULL if video has no audio. More... | |
virtual void | ReleaseLeakingResources () |
Release leaking resources and report them. More... | |
System Peer Management | |
virtual void | SystemGraphicLoad () |
Graphic System Peers of all stored resources have to be created. More... | |
virtual void | SystemGraphicUnload () |
Graphic 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. | |
virtual void | RemoveResource (deResource *resource) |
Removes the given resource from the manager without freeing it. More... | |
void | RemoveDecoder (deVideoDecoder *decoder) |
void | RemoveAudioDecoder (deVideoAudioDecoder *decoder) |
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... | |
decBaseFileReader * | OpenFileForReading (const deVirtualFileSystem &vfs, const char *filename) const |
Open file for reading using. More... | |
decBaseFileWriter * | OpenFileForWriting (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... | |
deEngine * | GetEngine () const |
Game engine. More... | |
int | GetResourceType () const |
Resources type stored in this manager. More... | |
const decString & | GetLoggingName () 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... | |
deModuleSystem * | GetModuleSystem () const |
deGraphicSystem * | GetGraphicSystem () const |
dePhysicsSystem * | GetPhysicsSystem () const |
deAnimatorSystem * | GetAnimatorSystem () const |
deSynthesizerSystem * | GetSynthesizerSystem () const |
deAISystem * | GetAISystem () const |
deAudioSystem * | GetAudioSystem () const |
deNetworkSystem * | GetNetworkSystem () const |
deScriptingSystem * | GetScriptingSystem () const |
deImageManager * | GetImageManager () const |
deVideoManager * | GetVideoManager () const |
deSkinManager * | GetSkinManager () 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) |
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... | |
Video resource manager.
deVideoManager::deVideoManager | ( | deEngine * | engine | ) |
Create video resource manager.
|
virtual |
Clean up video resource manager and reports leaking resources.
void deVideoManager::AddLoadedVideo | ( | deVideo * | video | ) |
Add loaded video.
deVideoAudioDecoder* deVideoManager::CreateAudioDecoder | ( | deVideo * | video | ) |
Create audio decoder or NULL if video has no audio.
deVideoDecoder* deVideoManager::CreateDecoder | ( | deVideo * | video | ) |
Create video decoder.
deVideo* deVideoManager::GetRootVideo | ( | ) | const |
Root video resource for iteration purpose.
int deVideoManager::GetVideoCount | ( | ) | const |
Number of videos.
deVideo* deVideoManager::GetVideoWith | ( | const char * | filename | ) | const |
Video with filename or NULL if not loaded yet.
deVideo* deVideoManager::GetVideoWith | ( | deVirtualFileSystem * | vfs, |
const char * | filename | ||
) | const |
Video with filename or NULL if not loaded yet.
deVideo* deVideoManager::LoadVideo | ( | const char * | filename, |
const char * | basePath, | ||
bool | asynchron | ||
) |
Load video from file relative to base path.
deVideo* deVideoManager::LoadVideo | ( | deVirtualFileSystem * | vfs, |
const char * | filename, | ||
const char * | basePath, | ||
bool | asynchron | ||
) |
Load video from file relative to base path.
|
virtual |
Release leaking resources and report them.
Reimplemented from deResourceManager.
void deVideoManager::RemoveAudioDecoder | ( | deVideoAudioDecoder * | decoder | ) |
void deVideoManager::RemoveDecoder | ( | deVideoDecoder * | decoder | ) |
|
virtual |
Removes the given resource from the manager without freeing it.
Implements deResourceManager.
void deVideoManager::SaveVideo | ( | deVideo * | video, |
const char * | filename | ||
) |
Save video to file.
void deVideoManager::SaveVideo | ( | deVirtualFileSystem * | vfs, |
deVideo * | video, | ||
const char * | filename | ||
) |
Save video to file.
|
virtual |
Graphic System Peers of all stored resources have to be created.
Reimplemented from deResourceManager.
|
virtual |
Graphic System Peers of all stored resources have to be freed.
Reimplemented from deResourceManager.