OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
Specialisation of HardwareVertexBuffer for D3D9. More...
#include <OgreD3D9HardwareVertexBuffer.h>
Public Member Functions | |
D3D9HardwareVertexBuffer (HardwareBufferManagerBase *mgr, size_t vertexSize, size_t numVertices, HardwareBuffer::Usage usage, bool useSystemMem, bool useShadowBuffer) | |
~D3D9HardwareVertexBuffer () | |
void | createBuffer (IDirect3DDevice9 *d3d9Device, D3DPOOL ePool, bool updateNewBuffer) |
IDirect3DVertexBuffer9 * | getD3D9VertexBuffer (void) |
Get D3D9-specific vertex buffer. | |
virtual void | notifyOnDeviceCreate (IDirect3DDevice9 *d3d9Device) |
virtual void | notifyOnDeviceDestroy (IDirect3DDevice9 *d3d9Device) |
virtual void | notifyOnDeviceLost (IDirect3DDevice9 *d3d9Device) |
virtual void | notifyOnDeviceReset (IDirect3DDevice9 *d3d9Device) |
void | readData (size_t offset, size_t length, void *pDest) |
See HardwareBuffer. | |
void | writeData (size_t offset, size_t length, const void *pSource, bool discardWholeBuffer=false) |
See HardwareBuffer. | |
Static Public Member Functions | |
static void | lockDeviceAccess () |
static void | unlockDeviceAccess () |
Specialisation of HardwareVertexBuffer for D3D9.
Ogre::D3D9HardwareVertexBuffer::D3D9HardwareVertexBuffer | ( | HardwareBufferManagerBase * | mgr, |
size_t | vertexSize, | ||
size_t | numVertices, | ||
HardwareBuffer::Usage | usage, | ||
bool | useSystemMem, | ||
bool | useShadowBuffer | ||
) |
Ogre::D3D9HardwareVertexBuffer::~D3D9HardwareVertexBuffer | ( | ) |
void Ogre::D3D9HardwareVertexBuffer::createBuffer | ( | IDirect3DDevice9 * | d3d9Device, |
D3DPOOL | ePool, | ||
bool | updateNewBuffer | ||
) |
IDirect3DVertexBuffer9 * Ogre::D3D9HardwareVertexBuffer::getD3D9VertexBuffer | ( | void | ) |
Get D3D9-specific vertex buffer.
|
virtual |
Reimplemented from Ogre::D3D9Resource.
|
virtual |
Reimplemented from Ogre::D3D9Resource.
|
virtual |
Reimplemented from Ogre::D3D9Resource.
|
virtual |
Reimplemented from Ogre::D3D9Resource.
See HardwareBuffer.
void Ogre::D3D9HardwareVertexBuffer::writeData | ( | size_t | offset, |
size_t | length, | ||
const void * | pSource, | ||
bool | discardWholeBuffer = false |
||
) |
See HardwareBuffer.