Torque3D Documentation / _generateds / GFXPrimitiveBuffer

GFXPrimitiveBuffer

Engine/source/gfx/gfxPrimitiveBuffer.h

More...

Public Friends

Public Functions

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

The resource should put a description of itself (number of vertices, size/width of texture, etc.) in buffer.

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

unlocks this primitive buffer.

Detailed Description

Public Friends

Public Attributes

GFXBufferType mBufferType 
GFXDevice * mDevice 
U32 mIndexCount 
GFXPrimitive * mPrimitiveArray 
U32 mPrimitiveCount 
U32 mVolatileStart 

Public Functions

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

~GFXPrimitiveBuffer()

describeSelf()

Reimplemented from: GFXResource

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

locks this primitive buffer for writing into

Reimplemented by: GFXD3D11PrimitiveBuffer, GFXGLPrimitiveBuffer, GFXNullPrimitiveBuffer

prepare()

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

Reimplemented by: GFXD3D11PrimitiveBuffer, GFXGLPrimitiveBuffer, GFXNullPrimitiveBuffer

unlock()

unlocks this primitive buffer.

Reimplemented by: GFXD3D11PrimitiveBuffer, GFXGLPrimitiveBuffer, GFXNullPrimitiveBuffer