Added love.graphics.origin(): resets the coordinate system (replaces the current transformation matrix with the identity)

--HG--
branch : love.graphics.origin
This commit is contained in:
Alex Szpakowski
2013-02-24 14:07:03 -04:00
parent 6282cad960
commit 083218742a
6 changed files with 26 additions and 1 deletions
@@ -1250,6 +1250,12 @@ int w_shear(lua_State *L)
return 0;
}
int w_origin(lua_State *L)
{
instance->origin();
return 0;
}
int w_hasFocus(lua_State *L)
{
luax_pushboolean(L, instance->hasFocus());
@@ -1352,6 +1358,7 @@ static const luaL_Reg functions[] =
{ "scale", w_scale },
{ "translate", w_translate },
{ "shear", w_shear },
{ "origin", w_origin },
{ "hasFocus", w_hasFocus },