Add new RageDisplay bindings:
GetFPS() GetVPF() GetCumFPS()
This commit is contained in:
@@ -8,6 +8,10 @@ ________________________________________________________________________________
|
|||||||
StepMania 5.0 $next | 2011xxxx
|
StepMania 5.0 $next | 2011xxxx
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
2011/10/07
|
||||||
|
----------
|
||||||
|
* [RageDisplay] Add the GetFPS, GetVPF, and GetCumFPS bindings. [Wolfman2000]
|
||||||
|
|
||||||
2011/10/06
|
2011/10/06
|
||||||
----------
|
----------
|
||||||
* Various scoring fixes sourced from http://www47.atwiki.jp/waiei/pages/21.html
|
* Various scoring fixes sourced from http://www47.atwiki.jp/waiei/pages/21.html
|
||||||
|
|||||||
@@ -1134,6 +1134,9 @@
|
|||||||
<Class name='RageDisplay'>
|
<Class name='RageDisplay'>
|
||||||
<Function name='GetDisplayHeight'/>
|
<Function name='GetDisplayHeight'/>
|
||||||
<Function name='GetDisplayWidth'/>
|
<Function name='GetDisplayWidth'/>
|
||||||
|
<Function name='GetFPS'/>
|
||||||
|
<Function name='GetVPF'/>
|
||||||
|
<Function name='GetCumFPS'/>
|
||||||
</Class>
|
</Class>
|
||||||
<Class name='RageFile'>
|
<Class name='RageFile'>
|
||||||
<Function name='AtEOF'/>
|
<Function name='AtEOF'/>
|
||||||
|
|||||||
@@ -3035,6 +3035,15 @@
|
|||||||
<Function name='GetDisplayWidth' return='int' arguments=''>
|
<Function name='GetDisplayWidth' return='int' arguments=''>
|
||||||
Return the width of the display.
|
Return the width of the display.
|
||||||
</Function>
|
</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>
|
||||||
<Class name='RageFile'>
|
<Class name='RageFile'>
|
||||||
<Description>
|
<Description>
|
||||||
|
|||||||
@@ -1013,10 +1013,31 @@ public:
|
|||||||
return 1;
|
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()
|
LunaRageDisplay()
|
||||||
{
|
{
|
||||||
ADD_METHOD( GetDisplayWidth );
|
ADD_METHOD( GetDisplayWidth );
|
||||||
ADD_METHOD( GetDisplayHeight );
|
ADD_METHOD( GetDisplayHeight );
|
||||||
|
ADD_METHOD( GetFPS );
|
||||||
|
ADD_METHOD( GetVPF );
|
||||||
|
ADD_METHOD( GetCumFPS );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user