enum Gloop::Texture::Target
Overview
Types and binding targets of textures.
Defined in:
gloop/texture/target.crEnum Members
-
Texture1D =
3552_u32 -
Texture2D =
3553_u32 -
Texture3D =
32879_u32 -
Texture1DArray =
35864_u32 -
Texture2DArray =
35866_u32 -
Rectangle =
34037_u32 -
CubeMap =
34067_u32 -
CubeMapArray =
36873_u32 -
Buffer =
35882_u32 -
MultiSample2D =
37120_u32 -
MultiSample2DArray =
37122_u32
Constructors
-
.new(value : Symbol)
Creates a texture type from a symbol.
Instance Method Summary
- #buffer?
- #cube_map?
- #cube_map_array?
- #multi_sample2_d?
- #multi_sample2_d_array?
- #rectangle?
- #texture1_d?
- #texture1_d_array?
- #texture2_d?
- #texture2_d_array?
- #texture3_d?
-
#to_unsafe
Converts to an OpenGL enum.
Constructor Detail
def self.new(value : Symbol)
#
Creates a texture type from a symbol.
This is intended to be used as a workaround for Crystal's limitations and auto-generated names.