struct Gloop::TextureList
- Gloop::TextureList
- Gloop::ObjectList(Gloop::Texture)
- Struct
- Value
- Object
Overview
Collection of textures belonging to the same context.
Defined in:
gloop/texture.crConstructors
-
.create(context, type : Texture::Target, count : Int) : self
Creates multiple textures of the specified type.
-
.create(context, type : Symbol, count : Int) : self
Creates multiple textures of the specified type.
-
.generate(context, count : Int) : self
Generates multiple textures.
-
.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 textures in the list.
Instance methods inherited from struct Gloop::ObjectList(Gloop::Texture)
size
size,
to_slice
to_slice,
to_unsafe
to_unsafe,
unsafe_fetch(index : Int)
unsafe_fetch
Constructor methods inherited from struct Gloop::ObjectList(Gloop::Texture)
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 textures of the specified type.
- OpenGL function:
glCreateTextures
- OpenGL version: 4.5
Creates multiple textures of the specified type.
- OpenGL function:
glCreateTextures
- OpenGL version: 4.5
Generates multiple textures.
The textures aren't assigned a type or resources until they are bound.
See: #create
- OpenGL function:
glGenTextures
- OpenGL version: 2.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 textures in the list.
- OpenGL function:
glDeleteTextures
- OpenGL version: 2.0