GFXD3D8VertexBuffer Class Reference

#include <gfxD3D8VertexBuffer.h>

Inheritance diagram for GFXD3D8VertexBuffer:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 GFXD3D8VertexBuffer ()
 GFXD3D8VertexBuffer (GFXDevice *device, U32 numVerts, U32 vertexType, U32 vertexSize, GFXBufferType bufferType)
 ~GFXD3D8VertexBuffer ()
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

IDirect3DVertexBuffer8 * vb
StrongRefPtr< GFXD3D8VertexBuffermVolatileBuffer
bool mIsFirstLock
char * name
GFXD3D8VertexBuffernext
 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

GFXD3D8VertexBuffer::GFXD3D8VertexBuffer (  )  [inline]

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

GFXD3D8VertexBuffer::~GFXD3D8VertexBuffer (  )  [inline]


Member Function Documentation

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

Implements GFXVertexBuffer.

void GFXD3D8VertexBuffer::unlock (  )  [virtual]

Implements GFXVertexBuffer.

void GFXD3D8VertexBuffer::prepare (  )  [virtual]

Implements GFXVertexBuffer.

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

virtual void GFXD3D8VertexBuffer::zombify (  )  [virtual]

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

Implements GFXResource.

virtual void GFXD3D8VertexBuffer::resurrect (  )  [virtual]

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

Implements GFXResource.


Member Data Documentation

IDirect3DVertexBuffer8* GFXD3D8VertexBuffer::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.