Texture

A baseclass of OpenGL texture.

Constructors

this
this(vec2i sz)

Destructor

~this
~this()

Members

Functions

bind
void bind()

Sets the texture binded.

dispose
void dispose()

Deletes the texture.

Manifest constants

NullId
enum NullId;

Invalid texture id.

Properties

binded
binded [@property getter]

Checks if the texture is binded.

disposed
disposed [@property getter]

Checks if the texture is disposed.

id
id [@property getter]

OpenGL texture id.

target
GLenum target [@property getter]

GL_TEXTURE_2D, etc...

Static variables

_bindedTexture
Texture _bindedTexture;
Undocumented in source.

Variables

_id
GLuint _id;
Undocumented in source.
size
vec2i size;

Size of this texture.

Meta