Torque3D Documentation / _generateds / GFXVertexBufferHandle

GFXVertexBufferHandle

Engine/source/gfx/gfxVertexBuffer.h

A handle object for allocating, filling, and reading a vertex buffer.

More...

Private Types

Private Functions

Sets this vertex buffer as the current vertex buffer for the device it was allocated on.

Public Functions

GFXVertexBufferHandle(GFXDevice * theDevice, U32 numVerts, GFXBufferType type)
T *
lock(U32 vertexStart, U32 vertexEnd)
T &
operator[](S32 index)
const T &
operator[](S32 index)

< Array operator allows indexing into a locked vertex buffer.

T &
operator[](U32 index)
const T &
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()