struct Gloop::Textures
- Gloop::Textures
- Struct
- Value
- Object
Overview
Reference to all texture binding targets for a context.
Included Modules
- Gloop::Contextual
- Gloop::Parameters
Defined in:
gloop/textures.crConstructors
-
.new(context : Gloop::Context)
Creates a resource associated with a context.
Instance Method Summary
-
#[](target : Texture::Target) : Texture::BindTarget
Retrieves the specified texture binding target.
-
#[](target : Symbol) : Texture::BindTarget
Retrieves the specified texture binding target.
-
#buffer : Texture::BindTarget
Retrieves a binding target for buffer textures.
-
#cube_map : Texture::BindTarget
Retrieves a binding target for cube map textures.
-
#cube_map_array : Texture::BindTarget
Retrieves a binding target for cube map texture arrays.
-
#multi_sample_2d : Texture::BindTarget
Retrieves a binding target for multi-sample 2D textures.
-
#multi_sample_2d_array : Texture::BindTarget
Retrieves a binding target for multi-sample 2D texture arrays.
-
#rectangle : Texture::BindTarget
Retrieves a binding target for rectangle textures.
-
#texture_1d : Texture::BindTarget
Retrieves a binding target for 1D textures.
-
#texture_1d_array : Texture::BindTarget
Retrieves a binding target for 1D texture arrays.
-
#texture_2d : Texture::BindTarget
Retrieves a binding target for 2D textures.
-
#texture_2d_array : Texture::BindTarget
Retrieves a binding target for 2D texture arrays.
-
#texture_3d : Texture::BindTarget
Retrieves a binding target for 3D textures.
-
#unit
Retrieves the active texture unit.
-
#unit=(unit)
Sets the active texture unit.
Constructor Detail
Instance Method Detail
Retrieves the specified texture binding target.
Retrieves a binding target for multi-sample 2D textures.
Retrieves a binding target for multi-sample 2D texture arrays.
Retrieves the active texture unit.
- OpenGL function:
glGetIntegerv
- OpenGL enum:
GL_ACTIVE_TEXTURE
- OpenGL version: 2.0
Sets the active texture unit.
- OpenGL function:
glActiveTexture
- OpenGL version: 2.0