GFXGLPrimitiveBuffer
Engine/source/gfx/gl/gfxGLPrimitiveBuffer.h
This is a primitive buffer (index buffer to GL users) which uses VBOs.
Private Attributes
Public Functions
GFXGLPrimitiveBuffer(GFXDevice * device, U32 indexCount, U32 primitiveCount, GFXBufferType bufferType)
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