This commit is contained in:
muddmaker
2015-05-23 16:06:36 -07:00
parent fbc419fda6
commit 439cc65382
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1134,7 +1134,7 @@ void Graphics::circle(DrawMode mode, float x, float y, float radius, int points)
delete[] coords;
}
void Graphics::eclipse(DrawMode mode, float x, float y, float a, float b, int points)
void Graphics::ellipse(DrawMode mode, float x, float y, float a, float b, int points)
{
float two_pi = static_cast<float>(LOVE_M_PI * 2);
if (points <= 0) points = 1;
+1 -1
View File
@@ -386,7 +386,7 @@ public:
* @param b Radius in y-direction
* @param points Number of points to use to draw the circle.
**/
void eclipse(DrawMode mode, float x, float y, float a, float b, int points = 10);
void ellipse(DrawMode mode, float x, float y, float a, float b, int points = 10);
/**
* Draws an arc using the specified arguments.
@@ -1556,7 +1556,7 @@ int w_circle(lua_State *L)
return 0;
}
int w_eclipse(lua_State *L)
int w_ellipse(lua_State *L)
{
Graphics::DrawMode mode;
const char *str = luaL_checkstring(L, 1);
@@ -1573,7 +1573,7 @@ int w_eclipse(lua_State *L)
else
points = luaL_checkint(L, 6);
instance()->eclipse(mode, x, y, a, b, points);
instance()->ellipse(mode, x, y, a, b, points);
return 0;
}
@@ -1807,7 +1807,7 @@ static const luaL_Reg functions[] =
{ "line", w_line },
{ "rectangle", w_rectangle },
{ "circle", w_circle },
{ "eclipse", w_eclipse },
{ "eclipse", w_ellipse },
{ "arc", w_arc },
{ "roundedRectangle", w_roundedRectangle },
+1 -1
View File
@@ -109,7 +109,7 @@ int w_point(lua_State *L);
int w_line(lua_State *L);
int w_rectangle(lua_State *L);
int w_circle(lua_State *L);
int w_eclipse(lua_State *L);
int w_ellipse(lua_State *L);
int w_arc(lua_State *L);
int w_roundedRectangle(lua_State *L);
int w_polygon(lua_State *L);