unecht ~master (2017-06-11T11:53:32Z)
Dub
Repo
GLVertexBufferObject
unecht
gl
vertexBufferObject
final
class
GLVertexBufferObject {
int
elementSize
[@property getter];
int
elementCount
[@property getter];
GLRenderPrimitive
primitiveType
[@property setter];
this
(vec3[] _vertexData, bool _static);
this
(vec2[] _uvData, bool _static);
this
(uint[] _indexData, bool _static);
~this
();
void
destroy
();
void
bind
(GLuint _index);
void
unbind
();
void
renderIndexed
();
}
Constructors
this
this
(vec3[] _vertexData, bool _static)
create vertex buffer
this
this
(vec2[] _uvData, bool _static)
create uv buffer
this
this
(uint[] _indexData, bool _static)
create index buffer
Destructor
~this
~this
()
Members
Functions
bind
void
bind
(GLuint _index)
destroy
void
destroy
()
renderIndexed
void
renderIndexed
()
unbind
void
unbind
()
Properties
elementCount
int
elementCount
[@property getter]
elementSize
int
elementSize
[@property getter]
primitiveType
GLRenderPrimitive
primitiveType
[@property setter]
Meta
Source
See Implementation
unecht
gl
vertexBufferObject
classes
GLVertexBufferObject
enums
GLRenderPrimitive
static functions
checkGLError