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
+3 -13
View File
@@ -110,21 +110,11 @@ namespace opengl
t.setTransformation(x, y, angle, sx, sy, ox, oy);
drawv(t, vertices);
}
void Image::draws(float x, float y, float angle, float sx, float sy, float ox, float oy, float rx, float ry, float rw, float rh) const
void Image::drawq(Quad * quad, float x, float y, float angle, float sx, float sy, float ox, float oy) const
{
static Matrix t;
static vertex cache[4];
getRectangleVertices((int)rx, (int)ry, (int)rw, (int)rh, cache);
t.setTransformation(x, y, angle, sx, sy, ox, oy);
drawv(t, cache);
}
void Image::drawf(float x, float y, float angle, float sx, float sy, float ox, float oy, Frame * frame) const
{
static Matrix t;
const vertex * v = frame->getVertices();
const vertex * v = quad->getVertices();
t.setTransformation(x, y, angle, sx, sy, ox, oy);
drawv(t, v);