Add shear transformation and transform object (issue #152).

Add origin parameters to love.graphics.print.

New shear parameters kx,ky for:
- love.graphics.draw,
- love.graphics.drawq,
- love.graphics.print,
- SpriteBatch:add,
- SpriteBatch:addq.

Transform objects apply to:
- love.graphics.draw,
- love.graphics.drawq,
- love.graphics.print.
This commit is contained in:
vrld
2011-07-05 14:33:34 +02:00
parent ce5927379d
commit d420d68048
20 changed files with 214 additions and 55 deletions
+3 -3
View File
@@ -89,8 +89,8 @@ namespace opengl
bool loadVolatile();
void unloadVolatile();
void add(float x, float y, float a, float sx, float sy, float ox, float oy);
void addq(Quad * quad, float x, float y, float a, float sx, float sy, float ox, float oy);
void add(float x, float y, float a, float sx, float sy, float ox, float oy, float kx, float ky);
void addq(Quad * quad, float x, float y, float a, float sx, float sy, float ox, float oy, float kx, float ky);
void clear();
void * lock();
@@ -99,7 +99,7 @@ namespace opengl
void setImage(Image * newimage);
// Implements Drawable.
void draw(float x, float y, float angle, float sx, float sy, float ox, float oy) const;
void draw(float x, float y, float angle, float sx, float sy, float ox, float oy, float kx, float ky) const;
private: