Torque3D Documentation / _generateds / GFXVertexBuffer

GFXVertexBuffer

Engine/source/gfx/gfxVertexBuffer.h

More...

Public Friends

Public Attributes

bool

GFX buffer type (static, dynamic or volatile).

Device this vertex buffer was allocated on.

Number of vertices in this buffer.

A copy of the vertex format for this buffer.

Vertex size in bytes.

Public Functions

GFXVertexBuffer(GFXDevice * device, U32 numVerts, const GFXVertexFormat * vertexFormat, U32 vertexSize, GFXBufferType bufferType)

The resource should put a description of itself (number of vertices, size/width of texture, etc.) in buffer.

lock(U32 vertexStart, U32 vertexEnd, void ** vertexPtr)

Detailed Description

Public Friends

Public Attributes

bool isLocked 
U32 lockedVertexEnd 
void * lockedVertexPtr 
U32 lockedVertexStart 
GFXBufferType mBufferType 

GFX buffer type (static, dynamic or volatile).

GFXDevice * mDevice 

Device this vertex buffer was allocated on.

U32 mNumVerts 

Number of vertices in this buffer.

GFXVertexFormat mVertexFormat 

A copy of the vertex format for this buffer.

U32 mVertexSize 

Vertex size in bytes.

U32 mVolatileStart 

Public Functions

GFXVertexBuffer(GFXDevice * device, U32 numVerts, const GFXVertexFormat * vertexFormat, U32 vertexSize, GFXBufferType bufferType)

describeSelf()

Reimplemented from: GFXResource

lock(U32 vertexStart, U32 vertexEnd, void ** vertexPtr)

Reimplemented by: GFXD3D11VertexBuffer, GFXGLVertexBuffer, GFXNullVertexBuffer

prepare()

Reimplemented by: GFXD3D11VertexBuffer, GFXGLVertexBuffer, GFXNullVertexBuffer

unlock()

Reimplemented by: GFXD3D11VertexBuffer, GFXGLVertexBuffer, GFXNullVertexBuffer