GenericVbo

A vertex buffer object.

This is a wrapper around a GLuint generated by glGenBuffers(1, &id). Initially, this id is 0. glGenBuffers is automatically called the first time bind() is called.

Vbo!void is an alias of this.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

bind
void bind(GLenum buffer)

Create the OpenGL Vbo, if needed, and bind it. (Calls glBindBuffer.)

create
void create()

Force the creation of a OpenGL Vbo, or do nothing if already created. (Calls glGenBuffers.)

destroy
void destroy()

Destroy the OpenGL Vbo and reset the id back to 0. (Calls glDeleteBuffers.)

opCast
bool opCast()

Check if this Vao is already created in OpenGL.

opCast
inout(SpecificVbo!(T)) opCast()

Cast this GenericVbo to a specific SpecificVbo!T.

Properties

created
bool created [@property getter]

Check if this Vao is already created in OpenGL.

id
GLuint id [@property getter]

The id of this Vao, or 0 if it is not yet created in OpenGL.

Meta