6 struct atlas_allocation_t
{
10 struct atlas_allocation_t
*leaf1
, *leaf2
;
14 struct atlas_allocation_t
*allocation
;
19 /** allocates a new atlas. Further settings should be set manually
20 * on the atlas_t::surface.
22 atlas_t
*atlasNew(size_t width
, size_t height
, u8 psm
);
25 void atlasFree(atlas_t
*atlas
);
27 /** Allocates a place in atlas for the given pixmap data.
28 * Atlas expects 32bit pixels - all the time
30 struct atlas_allocation_t
*atlasPlace(atlas_t
*atlas
, size_t width
,
31 size_t height
, const void *surface
);