1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #ifndef __RESOLUTIONSCALE_H__
- #define __RESOLUTIONSCALE_H__
- class idResolutionScale {
- public:
- idResolutionScale();
- void InitForMap( const char * mapName );
-
-
-
- void GetCurrentResolutionScale( float &x, float &y );
-
-
-
-
- void ResetToFullResolution();
-
-
- void SetCurrentGPUFrameTime( int microseconds );
-
- void GetConsoleText( idStr &s );
- private:
- float dropMilliseconds;
- float raiseMilliseconds;
- int framesAboveRaise;
- float currentResolution;
- };
- extern idResolutionScale resolutionScale;
- #endif
|