BufferInfo

Figure description structure for binding and drawing.

Constructors

this
this()
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

append
void append(Vector!float vertex, Args attached)

The function of accepting a vertex to the buffer, along with its attached data (position, color, texture coordinates, etc.)

attach
void attach()

Copy data to GPU.

bind
void bind()

Bind opengl buffer.

clear
void clear()

Clear data.

deleteBuffer
void deleteBuffer()

Delete opengl buffer.

generateBuffer
void generateBuffer()

Generate a buffer for the GPU.

move
void move()

Move data to GPU.

Properties

attachDataLength
size_t attachDataLength [@property getter]

How much data to attach (to all vertices).

length
size_t length [@property getter]

How many vertices are in the buffer

rawData
T[] rawData [@property getter]

Issuance of the final data that should be obtained.

rawLength
size_t rawLength [@property getter]

The final length of the buffer.

Static functions

unbind
void unbind()

Unbind opengl buffer.

Variables

attachData
T[][] attachData;

The remaining data. Each element refers to a certain top.

contextData
T[] contextData;
Undocumented in source.
id
uint id;
Undocumented in source.
vertexData
Vector!T[] vertexData;

Vertices.

Meta