Make roudned rectangle a variant of rectangle

This commit is contained in:
muddmaker
2015-05-23 17:05:03 -07:00
parent cb3ae86726
commit 0119e47f87
4 changed files with 17 additions and 33 deletions
+2 -2
View File
@@ -401,7 +401,7 @@ public:
void arc(DrawMode mode, float x, float y, float radius, float angle1, float angle2, int points = 10);
/**
* Draws a rounded rectangle.
* Variant of rectanglge that draws a rounded rectangle.
* @param mode The mode of drawing (line/filled).
* @param x X-coordinate of top-left corner
* @param y Y-coordinate of top-left corner
@@ -411,7 +411,7 @@ public:
* @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 rx, float ry, float points = 10);
void rectangle(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.