TextureUnits

Cache state of OpenGL texture units. Use deprecated image units!

Constructors

this
this(OpenGL gl)

Creates a TextureUnits object. This is automatically done by loading OpenGL.

Members

Functions

current
TextureUnit current()

Gets the active texture unit.

forgetTexture
void forgetTexture(GLuint texture)

Clear state about a texture, called on deletion.

setActiveTexture
void setActiveTexture(int texture)

Sets the "active texture" which is more precisely active texture unit.

unit
TextureUnit unit(int i)

Gets texture unit i.

Meta