Torque3D Documentation / _generateds / GFXD3D9PrimitiveBuffer

GFXD3D9PrimitiveBuffer

Engine/source/gfx/D3D9/gfxD3D9PrimitiveBuffer.h

More...

Public Attributes

IDirect3DIndexBuffer9 *
TORQUE_DEBUG bool

Public Functions

GFXD3D9PrimitiveBuffer(GFXDevice * device, U32 indexCount, U32 primitiveCount, GFXBufferType bufferType)
lock(U32 indexStart, U32 indexEnd, void ** indexPtr)

locks this primitive buffer for writing into

prepares this primitive buffer for use on the device it was allocated on

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

unlocks this primitive buffer.

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

Detailed Description

Public Attributes

IDirect3DIndexBuffer9 * ib 
bool mIsFirstLock 
TORQUE_DEBUG bool mLocked 
StrongRefPtr< GFXD3D9PrimitiveBuffer > mVolatileBuffer 

Public Functions

GFXD3D9PrimitiveBuffer(GFXDevice * device, U32 indexCount, U32 primitiveCount, GFXBufferType bufferType)

~GFXD3D9PrimitiveBuffer()

lock(U32 indexStart, U32 indexEnd, void ** indexPtr)

Reimplemented from: GFXPrimitiveBuffer

prepare()

Reimplemented from: GFXPrimitiveBuffer

resurrect()

Reimplemented from: GFXResource

unlock()

Reimplemented from: GFXPrimitiveBuffer

zombify()

Reimplemented from: GFXResource