Add new RageDisplay bindings:
GetFPS() GetVPF() GetCumFPS()
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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'/>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user