Fix issue #495: Large spritebatches doesn't render properly

This commit is contained in:
vrld
2012-11-23 10:23:44 +01:00
parent 7c2889afae
commit b2f1408b12
4 changed files with 310 additions and 32 deletions
+4 -2
View File
@@ -48,6 +48,7 @@ namespace opengl
class Image;
class Quad;
class VertexBuffer;
class VertexIndex;
class SpriteBatch : public Drawable
{
@@ -93,7 +94,7 @@ public:
void draw(float x, float y, float angle, float sx, float sy, float ox, float oy, float kx, float ky) const;
static bool getConstant(const char *in, UsageHint &out);
static bool getConstant(UsageHint in, const char *&out);
static bool getConstant(UsageHint in, const char *&out);
private:
@@ -126,7 +127,8 @@ private:
Color *color;
VertexBuffer *array_buf;
VertexBuffer *element_buf;
VertexIndex *element_buf;
}; // SpriteBatch
} // opengl