SpecificVbo

A Vbo that knows what type of elements are stored in it.

Vbo!T is an alias of this, except for Vbo!void (which is an alias for GenericVbo).

Contains a single GenericVbo, which is aliased as this. (Which basically means that any SpecificVbo!T is also a GenericVbo.)

Constructors

this
this(T[] data_, GLenum usage)

Store the given data in the Vbo. (Calls glBufferData.)

this
this(size_t n, GLenum usage)

Allocate a OpenGL Vbo with space for n elements. (Calls glBufferData with null.)

Alias This

vbo_

Members

Functions

clear
void clear(GLenum usage)

Calls resize(0).

data
void data(T[] data_, GLenum usage)

Store the given data in the Vbo. (Calls glBufferData.)

mapReadOnly
auto mapReadOnly()
mapReadWrite
auto mapReadWrite()
mapWriteOnly
auto mapWriteOnly()

Map the contents of the Vbo in our own memory, temporarily. (Calls glMapBuffer.)

resize
void resize(size_t size_, GLenum usage)

Allocate a OpenGL Vbo with space for n elements. (Calls glBufferData with null.)

size
size_t size()

The number of elements stored in this Vbo. (Calls glGetBufferParameteriv with GL_BUFFER_SIZE.)

Variables

vbo_
GenericVbo vbo_;
Undocumented in source.

Meta