Texture

Constructors

this
this(int width, int height)

Creates a new blank texture using the specified width and height

this
this(ubyte[] data, int width, int height)

Destructor

~this
~this()
Undocumented in source.

Members

Functions

bind
void bind()
Undocumented in source. Be warned that the author may not have intended to support it.
getData
ubyte[] getData()
recreate
void recreate(ubyte[] data, int width, int height)
resize
void resize(int width, int height)

Resizes texture, preserving data

update
void update(ubyte[] data)

Updates the texture

update
void update(ubyte[] data, int x, int y, int width, int height)

Updates part of the texture

Properties

height
int height [@property getter]
width
int width [@property getter]

Static functions

bind
void bind(uint id)
Undocumented in source. Be warned that the author may not have intended to support it.
cacheFile
Texture cacheFile(string path)
cleanUp
cleanUp()
Undocumented in source. Be warned that the author may not have intended to support it.
fetch
Texture fetch(string path)

Variables

id
uint id;

Meta