Oxygine  1
2g game engine
Classes | Public Types | Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
oxygine::MultiAtlas Class Reference

Classes

struct  rect
 

Public Types

typedef Closure< spTexture(int w, int h)> createTextureCallback
 

Public Member Functions

 MultiAtlas (createTextureCallback)
 
void init (int skipSize=3)
 
void clean ()
 
bool add (const ImageData &src, Rect &srcRect, spTexture &t)
 
const RectgetBounds () const
 

Protected Types

typedef std::deque< rectrects
 

Protected Member Functions

void place (const rect &dest, int w, int h, const ImageData &src, spTexture &t, Rect &srcRect)
 

Static Protected Member Functions

static bool sortRects (const rect &a, const rect &b)
 

Protected Attributes

createTextureCallback _cb
 
Rect _bounds
 
rects _free
 
int _skipSize
 

The documentation for this class was generated from the following file: