VertexRenderer

Buffer is a wrapper for a static Vertex Array. <b>It has nothing to do with the class VertexArray</b>

Members

Static functions

disableAllStates
void disableAllStates()

Disable all client states

disableState
void disableState(Target trg)

Disable a specific client state (with glDisableClientState)

drawArrays
void drawArrays(Shape.Type ptype, size_t count, size_t start)

Draw Shapes of a specific type from the data which is addressed through 'pointTo'. It will use count vertices.

drawElements
void drawElements(Shape.Type ptype, size_t count, uint[] indices)

Draw Shapes of a specific type from the data which is addressed through 'pointTo'. It will use count vertices and indices for the correct index per vertex.

drawRangeElements
void drawRangeElements(Shape.Type ptype, size_t count, uint[] indices, uint start, uint end)

Draw Shapes of a specific type from the data which is addressed through 'pointTo'. It will use count vertices and indices for the correct index per vertex.

enableAllStates
void enableAllStates()

Enable all client states

enableState
void enableState(Target trg)

Enable a specific client state (with glEnableClientState) like GL_VERTEX_ARRAY, GL_COLOR_ARRAY, GL_TEXTURE_COORD_ARRAY with the corresponding Target.

pointTo
void pointTo(Target trg, void* ptr, ubyte stride, ubyte offset)

Points to a specific Target.

pointTo
void pointTo(Target trg, ubyte[Target] stride, ubyte[Target] offset, void* ptr)

Points to a specific Target.

Meta

Authors

rschuett