Added SpriteBatch:isEmpty() and SpriteBatch:isFull()

This commit is contained in:
Alex Szpakowski
2013-03-01 17:32:38 -04:00
parent 34f291f26e
commit d3cdb7d609
4 changed files with 41 additions and 2 deletions
+10
View File
@@ -86,6 +86,16 @@ public:
*/
void setColor();
/**
* Returns whether the SpriteBatch is empty of sprites or not.
**/
bool isEmpty() const;
/**
* Returns whether the amount of sprites has reached the buffer limit or not.
**/
bool isFull() const;
// Implements Drawable.
void draw(float x, float y, float angle, float sx, float sy, float ox, float oy, float kx, float ky) const;