OGRE  1.9
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::D3D9ResourceManager Class Reference

#include <OgreD3D9ResourceManager.h>

+ Inheritance diagram for Ogre::D3D9ResourceManager:
+ Collaboration diagram for Ogre::D3D9ResourceManager:

Public Member Functions

 D3D9ResourceManager ()
 
 ~D3D9ResourceManager ()
 
bool getAutoHardwareBufferManagement () const
 
D3D9ResourceCreationPolicy getCreationPolicy () const
 
void lockDeviceAccess ()
 
void notifyOnDeviceCreate (IDirect3DDevice9 *d3d9Device)
 
void notifyOnDeviceDestroy (IDirect3DDevice9 *d3d9Device)
 
void notifyOnDeviceLost (IDirect3DDevice9 *d3d9Device)
 
void notifyOnDeviceReset (IDirect3DDevice9 *d3d9Device)
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, void *)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
void * operator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info More...
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, void *ptr)
 placement operator new More...
 
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info More...
 
void * operator new[] (size_t sz)
 
void setAutoHardwareBufferManagement (bool autoManagement)
 Set/Get automatic hardware buffers management. More...
 
void setCreationPolicy (D3D9ResourceCreationPolicy creationPolicy)
 
void unlockDeviceAccess ()
 

Protected Types

typedef set< D3D9Resource * >::type ResourceContainer
 
typedef ResourceContainer::iterator ResourceContainerIterator
 

Protected Member Functions

void _notifyResourceCreated (D3D9Resource *pResource)
 
void _notifyResourceDestroyed (D3D9Resource *pResource)
 
 OGRE_MUTEX (mResourcesMutex)
 

Protected Attributes

bool mAutoHardwareBufferManagement
 
long mDeviceAccessLockCount
 
D3D9ResourceCreationPolicy mResourceCreationPolicy
 
ResourceContainer mResources
 

Friends

class D3D9Resource
 

Detailed Description

Definition at line 53 of file OgreD3D9ResourceManager.h.

Member Typedef Documentation

Definition at line 101 of file OgreD3D9ResourceManager.h.

typedef ResourceContainer::iterator Ogre::D3D9ResourceManager::ResourceContainerIterator
protected

Definition at line 102 of file OgreD3D9ResourceManager.h.

Constructor & Destructor Documentation

Ogre::D3D9ResourceManager::D3D9ResourceManager ( )
Ogre::D3D9ResourceManager::~D3D9ResourceManager ( )

Member Function Documentation

void Ogre::D3D9ResourceManager::_notifyResourceCreated ( D3D9Resource pResource)
protected
void Ogre::D3D9ResourceManager::_notifyResourceDestroyed ( D3D9Resource pResource)
protected
bool Ogre::D3D9ResourceManager::getAutoHardwareBufferManagement ( ) const
inline

Definition at line 93 of file OgreD3D9ResourceManager.h.

D3D9ResourceCreationPolicy Ogre::D3D9ResourceManager::getCreationPolicy ( ) const
void Ogre::D3D9ResourceManager::lockDeviceAccess ( )
void Ogre::D3D9ResourceManager::notifyOnDeviceCreate ( IDirect3DDevice9 *  d3d9Device)
void Ogre::D3D9ResourceManager::notifyOnDeviceDestroy ( IDirect3DDevice9 *  d3d9Device)
void Ogre::D3D9ResourceManager::notifyOnDeviceLost ( IDirect3DDevice9 *  d3d9Device)
void Ogre::D3D9ResourceManager::notifyOnDeviceReset ( IDirect3DDevice9 *  d3d9Device)
Ogre::D3D9ResourceManager::OGRE_MUTEX ( mResourcesMutex  )
protected
template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr)
inlineinherited

Definition at line 96 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
void *   
)
inlineinherited

Definition at line 102 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 108 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr)
inlineinherited

Definition at line 113 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 119 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz)
inlineinherited

Definition at line 73 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void *  ptr 
)
inlineinherited

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz)
inlineinherited

Definition at line 91 of file OgreMemoryAllocatedObject.h.

void Ogre::D3D9ResourceManager::setAutoHardwareBufferManagement ( bool  autoManagement)
inline

Set/Get automatic hardware buffers management.

This has affect only when multiple devices involved during the runtime. When enabled, an explicit system memory backup is created for buffers with no read caps - so in case of device swaps the content of the buffers can be restored from this copy. The default is false in order to reduce system memory consumption.

Definition at line 92 of file OgreD3D9ResourceManager.h.

void Ogre::D3D9ResourceManager::setCreationPolicy ( D3D9ResourceCreationPolicy  creationPolicy)
void Ogre::D3D9ResourceManager::unlockDeviceAccess ( )

Friends And Related Function Documentation

friend class D3D9Resource
friend

Definition at line 97 of file OgreD3D9ResourceManager.h.

Member Data Documentation

bool Ogre::D3D9ResourceManager::mAutoHardwareBufferManagement
protected

Definition at line 120 of file OgreD3D9ResourceManager.h.

long Ogre::D3D9ResourceManager::mDeviceAccessLockCount
protected

Definition at line 119 of file OgreD3D9ResourceManager.h.

D3D9ResourceCreationPolicy Ogre::D3D9ResourceManager::mResourceCreationPolicy
protected

Definition at line 118 of file OgreD3D9ResourceManager.h.

ResourceContainer Ogre::D3D9ResourceManager::mResources
protected

Definition at line 117 of file OgreD3D9ResourceManager.h.


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