ShallowTexture

A texture which is not bound to an OpenGL context Used for texture atlassing

Constructors

this
this(string file)

Loads a shallow texture from image file Supported file types: * PNG 8-bit * BMP 8-bit * TGA 8-bit non-palleted * JPEG baseline

this
this(ubyte[] buffer)

Loads a shallow texture from image buffer Supported file types: * PNG 8-bit * BMP 8-bit * TGA 8-bit non-palleted * JPEG baseline

this
this(ubyte[] buffer, int w, int h, int channels)

Loads uncompressed texture from memory

Members

Functions

save
void save(string file)

Saves image

Variables

data
ubyte[] data;

8-bit RGBA color data

height
int height;

Height of texture

width
int width;

Width of texture

Meta