TextureData

Texture Data used during GPU uploads.

Members

Functions

dump
void dump(string file)

Dumps the image data to the specified file.

free
void free()

Frees the texture and all the data associated with it.

pad
void pad(uint thickness)

Pads the texture with a 1-pixel wide border.

premultiply
void premultiply()

Premultiplies incoming color data.

resize
void resize(uint width, uint height)

Resizes the texture data, ensuring that if any data is supplied it is updated to fit within the new target size.

unpremultiply
void unpremultiply()

Un-premultiplies incoming color data.

vflip
void vflip()

Flip the texture vertically.

Properties

channels
uint channels [@property getter]

Amount of color channels in the image.

Static functions

load
TextureData load(ubyte[] data)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

data
void[] data;
Undocumented in source.
format
TextureFormat format;
Undocumented in source.
height
uint height;
Undocumented in source.
width
uint width;
Undocumented in source.

Meta