CommonTextureMethods

Every Texture-Class will mixin this template.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

activate
void activate(GLuint unit)

Activates the texture to unit, passed to the function.

activate
void activate()

Activates the texture to unit, the struct member.

bind
void bind()

Binds the texture.

bind_and_activate
void bind_and_activate(GLuint unit)

Binds the texture and activates it to unit, passed to the function.

bind_and_activate
void bind_and_activate()

Binds the texture and activates it to unit, the struct member.

generate_mipmaps
void generate_mipmaps()

Generates mipmaps for the textre (also binds it)

get_parameter
float[] get_parameter(GLuint name)

Queries a texture parameter from OpenGL.

remove
void remove()

Deletes the texture.

set_parameter
void set_parameter(GLuint name, T params)

Sets a texture parameter.

unbind
void unbind()

Unbinds the texture.

Meta