- 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)
- 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)