struct Gloop::Textures

Overview

Reference to all texture binding targets for a context.

Included Modules

Defined in:

gloop/textures.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(context : Gloop::Context) #

Creates a resource associated with a context.


[View source]

Instance Method Detail

Retrieves the specified texture binding target.


[View source]
def [](target : Symbol) : Texture::BindTarget #

Retrieves the specified texture binding target.


[View source]
def buffer : Texture::BindTarget #

Retrieves a binding target for buffer textures.


[View source]
def cube_map : Texture::BindTarget #

Retrieves a binding target for cube map textures.


[View source]
def cube_map_array : Texture::BindTarget #

Retrieves a binding target for cube map texture arrays.


[View source]
def multi_sample_2d : Texture::BindTarget #

Retrieves a binding target for multi-sample 2D textures.


[View source]
def multi_sample_2d_array : Texture::BindTarget #

Retrieves a binding target for multi-sample 2D texture arrays.


[View source]
def rectangle : Texture::BindTarget #

Retrieves a binding target for rectangle textures.


[View source]
def texture_1d : Texture::BindTarget #

Retrieves a binding target for 1D textures.


[View source]
def texture_1d_array : Texture::BindTarget #

Retrieves a binding target for 1D texture arrays.


[View source]
def texture_2d : Texture::BindTarget #

Retrieves a binding target for 2D textures.


[View source]
def texture_2d_array : Texture::BindTarget #

Retrieves a binding target for 2D texture arrays.


[View source]
def texture_3d : Texture::BindTarget #

Retrieves a binding target for 3D textures.


[View source]
def unit #

Retrieves the active texture unit.

  • OpenGL function: glGetIntegerv
  • OpenGL enum: GL_ACTIVE_TEXTURE
  • OpenGL version: 2.0

[View source]
def unit=(unit) #

Sets the active texture unit.

  • OpenGL function: glActiveTexture
  • OpenGL version: 2.0

[View source]