mirror of
https://github.com/glest/glest-source.git
synced 2025-08-29 10:49:48 +02:00
Disabled streflop
This commit is contained in:
@@ -64,7 +64,7 @@ namespace Shared {
|
||||
virtual ~PlatformContextGl();
|
||||
|
||||
virtual void init(int colorBits, int depthBits, int stencilBits,
|
||||
bool hardware_acceleration, bool fullscreen_anti_aliasing,
|
||||
bool hardware_acceleration, int8 fullscreen_anti_aliasing,
|
||||
float gammaValue);
|
||||
virtual void end();
|
||||
|
||||
|
@@ -160,7 +160,7 @@ namespace Shared {
|
||||
static bool isKeyDown() {
|
||||
return isKeyPressedDown;
|
||||
}
|
||||
static void setupGraphicsScreen(int depthBits = -1, int stencilBits = -1, bool hardware_acceleration = false, bool fullscreen_anti_aliasing = false);
|
||||
static void setupGraphicsScreen(int depthBits = -1, int stencilBits = -1, bool hardware_acceleration = false, int8 fullscreen_anti_aliasing = 0);
|
||||
static const bool getIsFullScreen() {
|
||||
return isFullScreen;
|
||||
}
|
||||
@@ -184,7 +184,7 @@ namespace Shared {
|
||||
|
||||
virtual bool ChangeVideoMode(bool preserveContext, int resWidth, int resHeight,
|
||||
bool fullscreenWindow, int colorBits, int depthBits, int stencilBits,
|
||||
bool hardware_acceleration, bool fullscreen_anti_aliasing,
|
||||
bool hardware_acceleration, int8 fullscreen_anti_aliasing,
|
||||
float gammaValue) = 0;
|
||||
//static void setMasterserverMode(bool value) { Window::masterserverMode = value;}
|
||||
//static bool getMasterserverMode() { return Window::masterserverMode;}
|
||||
|
@@ -36,7 +36,7 @@ namespace Shared {
|
||||
virtual ~WindowGl();
|
||||
|
||||
void initGl(int colorBits, int depthBits, int stencilBits,
|
||||
bool hardware_acceleration, bool fullscreen_anti_aliasing,
|
||||
bool hardware_acceleration, int8 fullscreen_anti_aliasing,
|
||||
float gammaValue);
|
||||
void makeCurrentGl();
|
||||
void swapBuffersGl();
|
||||
@@ -55,7 +55,7 @@ namespace Shared {
|
||||
|
||||
virtual bool ChangeVideoMode(bool preserveContext, int resWidth, int resHeight,
|
||||
bool fullscreenWindow, int colorBits, int depthBits, int stencilBits,
|
||||
bool hardware_acceleration, bool fullscreen_anti_aliasing,
|
||||
bool hardware_acceleration, int8 fullscreen_anti_aliasing,
|
||||
float gammaValue);
|
||||
|
||||
protected:
|
||||
|
@@ -36,7 +36,7 @@ namespace Shared {
|
||||
void ContextGl::init() {
|
||||
|
||||
pcgl.init(colorBits, depthBits, stencilBits,
|
||||
(hardware_acceleration != 0), (fullscreen_anti_aliasing != 0),
|
||||
(hardware_acceleration != 0), fullscreen_anti_aliasing,
|
||||
gammaValue);
|
||||
}
|
||||
|
||||
|
@@ -67,7 +67,7 @@ namespace Shared {
|
||||
|
||||
void PlatformContextGl::init(int colorBits, int depthBits, int stencilBits,
|
||||
bool hardware_acceleration,
|
||||
bool fullscreen_anti_aliasing, float gammaValue) {
|
||||
int8 fullscreen_anti_aliasing, float gammaValue) {
|
||||
|
||||
if (SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s %d]\n", extractFileFromDirectoryPath(__FILE__).c_str(), __FUNCTION__, __LINE__);
|
||||
if (SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem, "In [%s::%s Line: %d]\n", extractFileFromDirectoryPath(__FILE__).c_str(), __FUNCTION__, __LINE__);
|
||||
|
@@ -574,7 +574,7 @@ namespace Shared {
|
||||
if (SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s %d]\n", extractFileFromDirectoryPath(__FILE__).c_str(), __FUNCTION__, __LINE__);
|
||||
}
|
||||
|
||||
void Window::setupGraphicsScreen(int depthBits, int stencilBits, bool hardware_acceleration, bool fullscreen_anti_aliasing) {
|
||||
void Window::setupGraphicsScreen(int depthBits, int stencilBits, bool hardware_acceleration, int8 fullscreen_anti_aliasing) {
|
||||
if (SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s %d]\n", extractFileFromDirectoryPath(__FILE__).c_str(), __FUNCTION__, __LINE__);
|
||||
|
||||
static int newDepthBits = depthBits;
|
||||
@@ -589,9 +589,9 @@ namespace Shared {
|
||||
if (GlobalStaticFlags::getIsNonGraphicalModeEnabled() == false) {
|
||||
if (SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s %d]\n", extractFileFromDirectoryPath(__FILE__).c_str(), __FUNCTION__, __LINE__);
|
||||
|
||||
if (fullscreen_anti_aliasing == true) {
|
||||
if (fullscreen_anti_aliasing > 0) {
|
||||
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
|
||||
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 2);
|
||||
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, fullscreen_anti_aliasing == 1 ? 2 : fullscreen_anti_aliasing);
|
||||
}
|
||||
if (hardware_acceleration == true) {
|
||||
SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1);
|
||||
|
@@ -75,7 +75,7 @@ namespace Shared {
|
||||
}
|
||||
|
||||
void WindowGl::initGl(int colorBits, int depthBits, int stencilBits,
|
||||
bool hardware_acceleration, bool fullscreen_anti_aliasing,
|
||||
bool hardware_acceleration, int8 fullscreen_anti_aliasing,
|
||||
float gammaValue) {
|
||||
context.setColorBits(colorBits);
|
||||
context.setDepthBits(depthBits);
|
||||
@@ -131,7 +131,7 @@ namespace Shared {
|
||||
bool WindowGl::ChangeVideoMode(bool preserveContext, int resWidth, int resHeight,
|
||||
bool fullscreenWindow,
|
||||
int colorBits, int depthBits, int stencilBits, bool hardware_acceleration,
|
||||
bool fullscreen_anti_aliasing, float gammaValue) {
|
||||
int8 fullscreen_anti_aliasing, float gammaValue) {
|
||||
if (SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s %d] preserveContext = %d\n", extractFileFromDirectoryPath(__FILE__).c_str(), __FUNCTION__, __LINE__, preserveContext);
|
||||
|
||||
#ifdef WIN32
|
||||
|
Reference in New Issue
Block a user