TextureAtlas

A texture atlas

Constructors

this
this(vec2i textureSize)

Creates a new texture atlas

Members

Functions

add
AtlasArea add(string name, ShallowTexture shallowTexture)

Add texture to the atlas

add
AtlasArea add(string name, string file)

Add texture to the atlas from a file

bind
void bind(uint unit)

Bind the atlas texture

clear
void clear()

Clears the texture atlas

opIndex
AtlasArea opIndex(string name)

Gets the UV points for the index

remove
void remove(string name)

Remove an entry from the atlas

setFiltering
void setFiltering(Filtering filtering)

Set filtering used for the texture

Variables

texture
Texture texture;
Undocumented in source.

Meta