Added love.window (issue #6.) All window-related functions have been moved from love.graphics to love.window.

love.graphics.setCaption has been renamed to love.window.setTitle.
This commit is contained in:
Alex Szpakowski
2013-05-10 22:32:15 -03:00
parent 13dd8d3199
commit ff77eb4b29
21 changed files with 555 additions and 478 deletions
+4 -4
View File
@@ -46,7 +46,7 @@ int w_getDelta(lua_State *L)
int w_getFPS(lua_State *L)
{
lua_pushnumber(L, instance->getFPS());
lua_pushinteger(L, instance->getFPS());
return 1;
}
@@ -58,7 +58,7 @@ int w_getAverageDelta(lua_State *L)
int w_sleep(lua_State *L)
{
instance->sleep((float) luaL_checknumber(L, 1));
instance->sleep(luaL_checknumber(L, 1));
return 0;
}
@@ -90,9 +90,9 @@ extern "C" int luaopen_love_timer(lua_State *L)
instance = new love::timer::sdl::Timer();
}
catch(Exception &e)
catch (Exception &e)
{
return luaL_error(L, e.what());
return luaL_error(L, "%s", e.what());
}
}
else