TextureInfo

Texture initialization structure.

Members

Variables

data
ubyte[] data;

Texture image data

height
uint height;

Texture height

params
int[] params;

Texture initialization parametr's.

width
uint width;

Texture width

Examples

Image image = new Image().load("default.png");
TextureInfo tinfo;
tinfo.width = image.width;
tinfo.height = image.height;
tinfo.data = image.bytes!(PixelFormat.RGBA);
...

Meta