BufferInfo.append

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

class BufferInfo(T)
@safe
void
append
(
Args...
)
(,)

Parameters

vertex Vector!float

Vertex position.

attached Args

Enumerated data that can be attached to the node.

Examples

//             vertex position --  color ------------
buffer.append (vec!float (32, 32), 1.0, 0.0, 0.0, 1.0);
buffer.append (vec!float (64, 64), 0.0, 1.0, 0.0, 0.5);

Meta