GLVertexSpec

Describe a Vertex structure. You must instantiate it with a compile-time struct describing your vertex format.

version(__OpenGL__)
final
class GLVertexSpec : VertexSpec!VERTEX(
VERTEX
) {}

Constructors

this
this(GLShaderProgram shader_program)

Creates a vertex specification.

Members

Functions

unuse
void unuse()

Unuse this vertex specification. If you are using a VAO, you don't need to call it, since the attributes would be tied to the VAO activation.

use
void use(uint divisor)

Use this vertex specification.

Meta