Add rx and ry parameters to roudnedRectangle

This commit is contained in:
muddmaker
2015-05-23 16:52:27 -07:00
parent dd41ccfbf7
commit cb3ae86726
3 changed files with 19 additions and 17 deletions
+3 -2
View File
@@ -407,10 +407,11 @@ public:
* @param y Y-coordinate of top-left corner
* @param w The width of the rectangle.
* @param h The height of the rectangle.
* @param r The radius of the corners.
* @param rx The radius of the corners on the x axis
* @param ry The radius of the corners on the y axis
* @param points The number of points to use per corner
**/
void roundedRectangle(DrawMode mode, float x, float y, float w, float h, float r, float points = 10);
void roundedRectangle(DrawMode mode, float x, float y, float w, float h, float rx, float ry, float points = 10);
/**
* Draws a polygon with an arbitrary number of vertices.