Texture

Interface Class: Represents a Texture (an image)

Constructors

this
this(GameManager game, string name, string filename, bool useAlpha)
Undocumented in source.

Members

Functions

cleanup
void cleanup()

Cleans up resources used by the Texture.

Properties

game
GameManager game [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
height
uint height [@property getter]

The height of the texture in pixels.

width
uint width [@property getter]

The width of the texture in pixels.

Static functions

build
Texture build(GameManager game, string name, string filename, bool useAlpha)

Use this method to build the correct Texture based on the Backend being used.

Variables

_height
uint _height;
Undocumented in source.
_width
uint _width;
Undocumented in source.
filename
string filename;

The file path of where the texture is located.

name
string name;

The texture's name or identifier.

useAlpha
bool useAlpha;

If to use alpha when reading.

Meta