enum Gloop::Texture::Target

Overview

Types and binding targets of textures.

Defined in:

gloop/texture/target.cr

Enum 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

Instance Method Summary

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.


[View source]

Instance Method Detail

def buffer? #

[View source]
def cube_map? #

[View source]
def cube_map_array? #

[View source]
def multi_sample2_d? #

[View source]
def multi_sample2_d_array? #

[View source]
def rectangle? #

[View source]
def texture1_d? #

[View source]
def texture1_d_array? #

[View source]
def texture2_d? #

[View source]
def texture2_d_array? #

[View source]
def texture3_d? #

[View source]
def to_unsafe #

Converts to an OpenGL enum.


[View source]