Torque3D Documentation / _generateds / GFXGLVertexBuffer

GFXGLVertexBuffer

Engine/source/gfx/gl/gfxGLVertexBuffer.h

This is a vertex buffer which uses GL_ARB_vertex_buffer_object.

More...

Public Friends

Private Attributes

GL buffer handle.

bytes offset in buffer

start vertex offset in buffer

Public Functions

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

Do nothing.

returns NULL

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

Only write lock are supported.

prepare(U32 stream, U32 divisor)

When called the resource should restore all device sensitive information destroyed by zombify()

When called the resource should destroy all device sensitive information (e.g. D3D resources in D3DPOOL_DEFAULT.

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