mirror of
https://github.com/glest/glest-source.git
synced 2025-08-10 18:34:05 +02:00
- allow changes to video resolution and fullscreen mode without restart
This commit is contained in:
@@ -213,7 +213,7 @@ string extractExtension(const string& filename);
|
||||
|
||||
void getFullscreenVideoModes(vector<ModeInfo> *modeinfos,bool isFullscreen);
|
||||
void getFullscreenVideoInfo(int &colorBits,int &screenWidth,int &screenHeight,bool isFullscreen);
|
||||
bool changeVideoMode(int resH, int resW, int colorBits, int refreshFrequency);
|
||||
void changeVideoModeFullScreen(bool value);
|
||||
void restoreVideoMode(bool exitingApp=false);
|
||||
|
||||
bool StartsWith(const std::string &str, const std::string &key);
|
||||
|
@@ -143,6 +143,10 @@ public:
|
||||
Window();
|
||||
virtual ~Window();
|
||||
|
||||
virtual bool ChangeVideoMode(bool preserveContext,int resWidth, int resHeight,
|
||||
bool fullscreenWindow, int colorBits, int depthBits, int stencilBits,
|
||||
bool hardware_acceleration, bool fullscreen_anti_aliasing,
|
||||
float gammaValue) = 0;
|
||||
//static void setMasterserverMode(bool value) { Window::masterserverMode = value;}
|
||||
//static bool getMasterserverMode() { return Window::masterserverMode;}
|
||||
|
||||
|
@@ -35,6 +35,11 @@ public:
|
||||
void makeCurrentGl();
|
||||
void swapBuffersGl();
|
||||
void setGamma(float gammaValue){context.setGammaValue(gammaValue);}
|
||||
|
||||
virtual bool ChangeVideoMode(bool preserveContext, int resWidth, int resHeight,
|
||||
bool fullscreenWindow, int colorBits, int depthBits, int stencilBits,
|
||||
bool hardware_acceleration, bool fullscreen_anti_aliasing,
|
||||
float gammaValue);
|
||||
};
|
||||
|
||||
}}//end namespace
|
||||
|
Reference in New Issue
Block a user