TexturePacker

Packing algorithm implementation

Constructors

this
this()
Undocumented in source.

Members

Functions

pack
FNode* pack(FNode* node, PVector size)

Packing algorithm

packTexture
PVector packTexture(ubyte[] textureBuffer, PVector size)

Pack a texture

resizeBuffer
void resizeBuffer(PSize newSize)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

buffer
ubyte[] buffer;

The output buffer

root
FNode* root;

The root node for the packing

textureSize
PSize textureSize;

Size of texture so far

Meta