GFXD3D9VertexBuffer Class Reference

#include <gfxD3D9VertexBuffer.h>

Inheritance diagram for GFXD3D9VertexBuffer:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 GFXD3D9VertexBuffer ()
 GFXD3D9VertexBuffer (GFXDevice *device, U32 numVerts, U32 vertexType, U32 vertexSize, GFXBufferType bufferType)
virtual ~GFXD3D9VertexBuffer ()
void lock (U32 vertexStart, U32 vertexEnd, void **vertexPtr)
void unlock ()
void prepare ()
void setName (const char *n)
virtual void zombify ()
 When called the resource should destroy all device sensitive information (e.g. D3D resources in D3DPOOL_DEFAULT.
virtual void resurrect ()
 When called the resource should restore all device sensitive information destroyed by zombify().

Public Attributes

IDirect3DVertexBuffer9 * vb
StrongRefPtr< GFXD3D9VertexBuffermVolatileBuffer
bool mIsFirstLock
bool mClearAtFrameEnd
char * name
GFXD3D9VertexBuffernext
 In debug compile, the verts will be chained together and the device will examine the chain when it's destructor is called, this will allow developers to see which vertex buffers are not destroyed.

Constructor & Destructor Documentation

GFXD3D9VertexBuffer::GFXD3D9VertexBuffer (  )  [inline]

GFXD3D9VertexBuffer::GFXD3D9VertexBuffer ( GFXDevice device,
U32  numVerts,
U32  vertexType,
U32  vertexSize,
GFXBufferType  bufferType 
) [inline]

virtual GFXD3D9VertexBuffer::~GFXD3D9VertexBuffer (  )  [virtual]


Member Function Documentation

void GFXD3D9VertexBuffer::lock ( U32  vertexStart,
U32  vertexEnd,
void **  vertexPtr 
) [virtual]

Implements GFXVertexBuffer.

void GFXD3D9VertexBuffer::unlock (  )  [virtual]

Implements GFXVertexBuffer.

void GFXD3D9VertexBuffer::prepare (  )  [virtual]

Implements GFXVertexBuffer.

void GFXD3D9VertexBuffer::setName ( const char *  n  )  [inline]

virtual void GFXD3D9VertexBuffer::zombify (  )  [virtual]

When called the resource should destroy all device sensitive information (e.g. D3D resources in D3DPOOL_DEFAULT.

Implements GFXResource.

virtual void GFXD3D9VertexBuffer::resurrect (  )  [virtual]

When called the resource should restore all device sensitive information destroyed by zombify().

Implements GFXResource.


Member Data Documentation

IDirect3DVertexBuffer9* GFXD3D9VertexBuffer::vb

In debug compile, the verts will be chained together and the device will examine the chain when it's destructor is called, this will allow developers to see which vertex buffers are not destroyed.