GFXVertexBufferHandle
Engine/source/gfx/gfxVertexBuffer.h
A handle object for allocating, filling, and reading a vertex buffer.
Private Types
Parent
Private Functions
Public Functions
GFXVertexBufferHandle(GFXDevice * theDevice, U32 numVerts, GFXBufferType type)
GFXVertexBufferHandle< T > &
operator=(GFXVertexBuffer * ptr)
T &
operator[](S32 index)
operator[](S32 index)
< Array operator allows indexing into a locked vertex buffer.
T &
operator[](U32 index)
operator[](U32 index)
< Array operator allows indexing into a locked vertex buffer.
set(GFXDevice * theDevice, U32 numVerts, GFXBufferType type)
Detailed Description
A handle object for allocating, filling, and reading a vertex buffer.
Private Types
typedef GFXVertexBufferHandleBase Parent
Private Functions
prepare()
Sets this vertex buffer as the current vertex buffer for the device it was allocated on.
Public Functions
GFXVertexBufferHandle()
GFXVertexBufferHandle(GFXDevice * theDevice, U32 numVerts, GFXBufferType type)
~GFXVertexBufferHandle()
lock(U32 vertexStart, U32 vertexEnd)
operator=(GFXVertexBuffer * ptr)
operator[](S32 index)
operator[](S32 index)
< Array operator allows indexing into a locked vertex buffer.
The debug version of the code will range check the array access as well as validate the locked vertex buffer pointer.
operator[](U32 index)
operator[](U32 index)
< Array operator allows indexing into a locked vertex buffer.
The debug version of the code will range check the array access as well as validate the locked vertex buffer pointer.
set(GFXDevice * theDevice, U32 numVerts, GFXBufferType type)
unlock()