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

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

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

cacheFile
Texture cacheFile(string path)
fetch
Texture fetch(string path)

Variables

id
uint id;

Meta