Group multiple small data regions into a larger texture.
The algorithm is based on the article by Jukka Jylänki : “A Thousand Ways to Pack the Bin - A Practical Approach to Two-Dimensional Rectangle Bin Packing”, February 27, 2010. More precisely, this is an implementation of the Skyline Bottom-Left algorithm based on C++ sources provided by Jukka Jylänki at: http://clb.demon.fi/files/RectangleBinPack/
Example usage:
atlas = TextureAtlas(512,512,3)
region = atlas.get_region(20,20)
...
atlas.set_region(region, data)
Initialize a new atlas of given size.
Parameters
Test if region (width,height) fit into self._nodes[index]
Parameters
Get a free region of given size and allocate it
Parameters