GFXGLVertexBuffer
Engine/source/gfx/gl/gfxGLVertexBuffer.h
This is a vertex buffer which uses GL_ARB_vertex_buffer_object.
Public Friends
class
Private Attributes
bytes offset in buffer
start vertex offset in buffer
Public Functions
GFXGLVertexBuffer(GFXDevice * device, U32 numVerts, const GFXVertexFormat * vertexFormat, U32 vertexSize, GFXBufferType bufferType)
prepare()
Do nothing. Use void prepare(U32 stream, U32 divisor).
Detailed Description
This is a vertex buffer which uses GL_ARB_vertex_buffer_object.
Public Friends
Private Attributes
GLuint mBuffer
GL buffer handle.
U32 mBufferOffset
bytes offset in buffer
U32 mBufferVertexOffset
start vertex offset in buffer
FrameAllocatorLockableHelper mFrameAllocator
U8 * mZombieCache
Public Functions
GFXGLVertexBuffer(GFXDevice * device, U32 numVerts, const GFXVertexFormat * vertexFormat, U32 vertexSize, GFXBufferType bufferType)
~GFXGLVertexBuffer()
finish()
Do nothing.
getBuffer()
returns NULL
lock(U32 vertexStart, U32 vertexEnd, void ** vertexPtr)
Reimplemented from: GFXVertexBuffer
prepare()
Reimplemented from: GFXVertexBuffer
prepare(U32 stream, U32 divisor)
resurrect()
Reimplemented from: GFXResource
unlock()
Reimplemented from: GFXVertexBuffer
zombify()
Reimplemented from: GFXResource