struct Gloop::Attributes
- Gloop::Attributes
- Struct
- Value
- Object
Overview
Information about all of the attributes in the currently bound vertex array.
This type should be used if direct state access (DSA) isn't available.
NOTE The currently bound vertex array is always referenced. If another vertex array is bound, then this will reference the newly bound instance.
Included Modules
- Gloop::Contextual
- Gloop::Parameters
- Indexable(Gloop::Attribute)
Defined in:
gloop/attributes.crConstructors
-
.new(context : Gloop::Context)
Creates a resource associated with a context.
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
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