Torque3D Documentation / _generateds / GFXGLPrimitiveBuffer

GFXGLPrimitiveBuffer

Engine/source/gfx/gl/gfxGLPrimitiveBuffer.h

This is a primitive buffer (index buffer to GL users) which uses VBOs.

More...

Public Functions

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

We're done with this buffer.

void *

returns NULL

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

only write lock are supported

binds the buffer

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

This is a primitive buffer (index buffer to GL users) which uses VBOs.

Private Attributes

U32 lockedIndexEnd 
U32 lockedIndexStart 
GLuint mBuffer 

Handle to our GL buffer object.

U32 mBufferOffset 
FrameAllocatorLockableHelper mFrameAllocator 
U8 * mZombieCache 

Public Functions

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

~GFXGLPrimitiveBuffer()

finish()

We're done with this buffer.

getBuffer()

returns NULL

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