GLMeshObject

Constructors

this
this(in GLMeshData md)

Members

Functions

createArrayBuffer
GLArrayBuffer createArrayBuffer()

override if want to create specific buffers

drawArrays
void drawArrays()

with draw_mode and num_vertices

drawElements
void drawElements()

with draw_mode and indices.elementCount

prepareBuffer
GLArrayBuffer prepareBuffer(in GLMeshData.Buffer bd, in GLAttrib[] attrlist)

create buffer, set attrib pointer, set data if exists

prepareMesh
void prepareMesh(in GLMeshData data)

creates buffers, set vertices count, etc

Variables

arrays
GLArrayBuffer[] arrays;
indices
GLElementArrayBuffer indices;
num_vertices
uint num_vertices;

Inherited Members

From GLDrawObject

vao
GLVAO vao;
preDraw
void preDraw()

override this for any action before draw

DrawMode
enum DrawMode
setAttribPointer
void setAttribPointer(GLArrayBuffer buffer, int index, uint per_element, GLType attype, size_t stride, size_t offset, bool norm = false)
void setAttribPointer(GLArrayBuffer buffer, int index, uint per_element, GLType attype, bool norm = false)
void setAttribPointer(GLArrayBuffer buffer, in GLAttrib attr)

glVertexAttribPointer

drawArrays
void drawArrays(DrawMode mode, uint start, uint count, uint instcount = 1, uint baseinst = 0)

glDrawArraysInstancedBaseInstance

multiDrawArraysIndirect
void multiDrawArraysIndirect(DrawMode mode, GLDrawIndirectBuffer dib, size_t offset = 0, uint count = 0)
drawElements
void drawElements(DrawMode mode, GLElementArrayBuffer eab, uint instcount = 1, uint basevert = 0, uint baseinst = 0)

glDrawElementsInstancedBaseVertexBaseInstance

multiDrawElementsIndirect
void multiDrawElementsIndirect(DrawMode mode, GLElementArrayBuffer eab, GLDrawIndirectBuffer dib, uint offset = 0, uint count = 0)

Meta