struct Gloop::VertexArray::Attributes
- Gloop::VertexArray::Attributes
- Struct
- Value
- Object
Overview
Information about all of the attributes in a vertex array.
This type uses direct state access (DSA). Ensure the OpenGL context supports this functionality prior to use.
Included Modules
- Gloop::Contextual
- Gloop::Parameters
- Indexable(Gloop::VertexArray::Attribute)
Defined in:
gloop/vertex_array/attributes.crConstructors
-
.new(context : Context, name : Name)
Creates a references to the attributes for a vertex array.
Instance Method Summary
-
#size
Retrieves the maximum number of attributes a vertex array can have.
-
#unsafe_fetch(index : Int)
Retrieves an attribute from the vertex array.
Constructor Detail
Creates a references to the attributes for a vertex array.
Instance Method Detail
def size
#
Retrieves the maximum number of attributes a vertex array can have.
- OpenGL function:
glGetIntegerv
- OpenGL enum:
GL_MAX_VERTEX_ATTRIBS
- OpenGL version: 3.0