nCine::GLVertexFormat class

Collects all the state that specifies the format of a vertex.

Public types

class Attribute
Vertex format attribute.

Public static variables

static const std::uint32_t MaxAttributes
The minimum value for GL_MAX_VERTEX_ATTRIBS

Constructors, destructors, conversion operators

GLVertexFormat()
GLVertexFormat(const GLVertexFormat& other) defaulted

Public functions

auto operator=(const nCine::GLVertexFormat& other) -> GLVertexFormat& defaulted
auto numAttributes() const -> std::uint32_t
auto ibo() const -> const GLBufferObject*
void setIbo(const GLBufferObject* ibo)
void define()
void reset()
auto operator[](std::uint32_t index) -> Attribute&
auto operator[](std::uint32_t index) const -> const Attribute&
auto operator==(const GLVertexFormat& other) const -> bool
auto operator!=(const GLVertexFormat& other) const -> bool