added elapsedTime()
git-svn-id: svn://anubis/anaglym/trunk@41 99a6e188-d820-4881-8870-2d33a10e2619
This commit is contained in:
parent
7bc249599f
commit
95c13516ef
7
ag.cc
7
ag.cc
@ -29,6 +29,7 @@ namespace ag
|
||||
{ "startFrame", startFrame },
|
||||
{ "endFrame", endFrame },
|
||||
{ "setCamera", setCamera },
|
||||
{ "elapsedTime", elapsedTime },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
luaL_register(L, "ag", functions);
|
||||
@ -188,6 +189,12 @@ namespace ag
|
||||
return g_engine->setCamera(L);
|
||||
}
|
||||
|
||||
int elapsedTime(lua_State * L)
|
||||
{
|
||||
lua_pushinteger(L, SDL_GetTicks());
|
||||
return 1;
|
||||
}
|
||||
|
||||
namespace object
|
||||
{
|
||||
int draw(lua_State * L)
|
||||
|
Loading…
x
Reference in New Issue
Block a user