Add new RageDisplay bindings:

GetFPS()
GetVPF()
GetCumFPS()
This commit is contained in:
Jason Felds
2011-10-07 21:14:39 -04:00
parent 85d3acb651
commit 6a393dc6f6
4 changed files with 37 additions and 0 deletions
+4
View File
@@ -8,6 +8,10 @@ ________________________________________________________________________________
StepMania 5.0 $next | 2011xxxx
--------------------------------------------------------------------------------
2011/10/07
----------
* [RageDisplay] Add the GetFPS, GetVPF, and GetCumFPS bindings. [Wolfman2000]
2011/10/06
----------
* Various scoring fixes sourced from http://www47.atwiki.jp/waiei/pages/21.html
+3
View File
@@ -1134,6 +1134,9 @@
<Class name='RageDisplay'>
<Function name='GetDisplayHeight'/>
<Function name='GetDisplayWidth'/>
<Function name='GetFPS'/>
<Function name='GetVPF'/>
<Function name='GetCumFPS'/>
</Class>
<Class name='RageFile'>
<Function name='AtEOF'/>
+9
View File
@@ -3035,6 +3035,15 @@
<Function name='GetDisplayWidth' return='int' arguments=''>
Return the width of the display.
</Function>
<Function name='GetFPS' return='int' arguments=''>
Return the FPS.
</Function>
<Function name='GetVPF' return='int' arguments=''>
Return the VPF.
</Function>
<Function name='GetCumFPS' return='int' arguments=''>
Return the cumulative FPS.
</Function>
</Class>
<Class name='RageFile'>
<Description>
+21
View File
@@ -1012,11 +1012,32 @@ public:
LuaHelpers::Push( L, params.height );
return 1;
}
static int GetFPS( T* p, lua_State *L )
{
lua_pushnumber(L, p->GetFPS());
return 1;
}
static int GetVPF( T* p, lua_State *L )
{
lua_pushnumber(L, p->GetVPF());
return 1;
}
static int GetCumFPS( T* p, lua_State *L )
{
lua_pushnumber(L, p->GetCumFPS());
return 1;
}
LunaRageDisplay()
{
ADD_METHOD( GetDisplayWidth );
ADD_METHOD( GetDisplayHeight );
ADD_METHOD( GetFPS );
ADD_METHOD( GetVPF );
ADD_METHOD( GetCumFPS );
}
};