Renamed Frame to Quad; added drawq/addq; fixed some bugs.

This commit is contained in:
rude
2009-08-17 23:35:04 +02:00
parent d4a97d49f3
commit c52c218ba1
25 changed files with 317 additions and 299 deletions
+6 -2
View File
@@ -43,6 +43,7 @@ namespace opengl
{
// Forward declarations.
class Image;
class Quad;
class SpriteBatch : public Drawable
{
@@ -84,8 +85,7 @@ namespace opengl
virtual ~SpriteBatch();
void add(float x, float y, float a, float sx, float sy, float ox, float oy);
//void adds(float x, float y, float a, float sx, float sy, float ox, float oy, float rx, float ry, float rw, float rh);
//void addf(float x, float y, float a, float sx, float sy, float ox, float oy, Frame * frame);
void addq(Quad * quad, float x, float y, float a, float sx, float sy, float ox, float oy);
void clear();
void * lock();
@@ -94,6 +94,10 @@ namespace opengl
// Implements Drawable.
void draw(float x, float y, float angle, float sx, float sy, float ox, float oy) const;
private:
void addv(const Matrix & t, const vertex * v);
}; // SpriteBatch
} // opengl