struct Gloop::VertexArray::CurrentBindings
- Gloop::VertexArray::CurrentBindings
- Struct
- Value
- Object
Overview
Information about all of the binding slots in a 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::VertexArray::CurrentBinding)
Defined in:
gloop/vertex_array/current_bindings.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 a binding slot 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_ATTRIB_BINDINGS
- OpenGL version: 4.3