Added all standard optional draw parameters to love.graphics.printf: angle, sx, sy, ox, oy, kx, and ky

This commit is contained in:
Alex Szpakowski
2013-03-18 16:15:21 -03:00
parent 991b15d670
commit 288971a3ad
3 changed files with 72 additions and 31 deletions
+9 -2
View File
@@ -392,7 +392,7 @@ public:
* @param kx Shear along the x-axis.
* @param ky Shear along the y-axis.
**/
void print(const char *str, float x, float y , float angle, float sx, float sy, float ox, float oy, float kx, float ky);
void print(const char *str, float x, float y, float angle, float sx, float sy, float ox, float oy, float kx, float ky);
/**
* Draw formatted text on screen at the specified coordinates.
@@ -402,8 +402,15 @@ public:
* @param y The y-coordinate.
* @param wrap The maximum width of the text area.
* @param align Where to align the text.
* @param angle The amount of rotation.
* @param sx The scale factor along the x-axis. (1 = normal).
* @param sy The scale factor along the y-axis. (1 = normal).
* @param ox The origin offset along the x-axis.
* @param oy The origin offset along the y-axis.
* @param kx Shear along the x-axis.
* @param ky Shear along the y-axis.
**/
void printf(const char *str, float x, float y, float wrap, AlignMode align);
void printf(const char *str, float x, float y, float wrap, AlignMode align, float angle, float sx, float sy, float ox, float oy, float kx, float ky);
/**
* Draws a point at (x,y).