struct Gloop::VertexArrayList
- Gloop::VertexArrayList
- Gloop::ObjectList(Gloop::VertexArray)
- Struct
- Value
- Object
Overview
Collection of vertex arrays belonging to the same context.
Defined in:
gloop/vertex_array.crConstructors
-
.create(context, count : Int) : self
Creates multiple new vertex arrays.
-
.generate(context, count : Int) : self
Generates multiple new vertex arrays.
-
.new(context : Context, names : Slice(Object::Name))
Creates a list of objects from the same context with their names.
-
.new(context : Context, names : Enumerable(Object::Name))
Creates a list of objects from the same context with their names.
-
.new(context : Context, objects : Enumerable(T))
Creates a list of object from the same context.
-
.new(context : Context, size : Int, &)
Creates a list of objects from the same context.
Instance Method Summary
-
#delete : Nil
Deletes all vertex arrays in the list.
Instance methods inherited from struct Gloop::ObjectList(Gloop::VertexArray)
size
size,
to_slice
to_slice,
to_unsafe
to_unsafe,
unsafe_fetch(index : Int)
unsafe_fetch
Constructor methods inherited from struct Gloop::ObjectList(Gloop::VertexArray)
new(context : Context, names : Slice(Object::Name))new(context : Context, names : Enumerable(Object::Name))
new(context : Context, objects : Enumerable(T))
new(context : Context, size : Int, &) new
Constructor Detail
Creates multiple new vertex arrays.
The number of vertex arrays to create is given by count.
Unlike .generate
, resources are created in advance instead of on the first binding.
- OpenGL function:
glCreateVertexArrays
- OpenGL version: 4.5
Generates multiple new vertex arrays.
This ensures unique names for the vertex array objects. Resources are not allocated for the vertex arrays until they are bound.
See: .create
- OpenGL function:
glGenVertexArrays
- OpenGL version: 3.0
Creates a list of objects from the same context with their names.
Creates a list of objects from the same context with their names.
Creates a list of object from the same context.
Creates a list of objects from the same context.
Yields a pointer to a block of memory to populate with object names.
Instance Method Detail
Deletes all vertex arrays in the list.
- OpenGL function:
glDeleteVertexArrays
- OpenGL version: 3.0