|
|
@ -100,6 +100,9 @@ void _glfwSetDefaultWindowHints(void) |
|
|
|
// The default minimum OpenGL version is 1.0
|
|
|
|
// The default minimum OpenGL version is 1.0
|
|
|
|
_glfwLibrary.hints.glMajor = 1; |
|
|
|
_glfwLibrary.hints.glMajor = 1; |
|
|
|
_glfwLibrary.hints.glMinor = 0; |
|
|
|
_glfwLibrary.hints.glMinor = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// The default is to allow window resizing
|
|
|
|
|
|
|
|
_glfwLibrary.hints.resizable = GL_TRUE; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -247,7 +250,7 @@ GLFWAPI GLFWwindow glfwOpenWindow(int width, int height, |
|
|
|
wndconfig.mode = mode; |
|
|
|
wndconfig.mode = mode; |
|
|
|
wndconfig.title = title; |
|
|
|
wndconfig.title = title; |
|
|
|
wndconfig.refreshRate = Max(_glfwLibrary.hints.refreshRate, 0); |
|
|
|
wndconfig.refreshRate = Max(_glfwLibrary.hints.refreshRate, 0); |
|
|
|
wndconfig.windowNoResize = _glfwLibrary.hints.windowNoResize ? GL_TRUE : GL_FALSE; |
|
|
|
wndconfig.resizable = _glfwLibrary.hints.resizable ? GL_TRUE : GL_FALSE; |
|
|
|
wndconfig.glMajor = _glfwLibrary.hints.glMajor; |
|
|
|
wndconfig.glMajor = _glfwLibrary.hints.glMajor; |
|
|
|
wndconfig.glMinor = _glfwLibrary.hints.glMinor; |
|
|
|
wndconfig.glMinor = _glfwLibrary.hints.glMinor; |
|
|
|
wndconfig.glForward = _glfwLibrary.hints.glForward ? GL_TRUE : GL_FALSE; |
|
|
|
wndconfig.glForward = _glfwLibrary.hints.glForward ? GL_TRUE : GL_FALSE; |
|
|
@ -419,8 +422,8 @@ GLFWAPI void glfwOpenWindowHint(int target, int hint) |
|
|
|
case GLFW_STEREO: |
|
|
|
case GLFW_STEREO: |
|
|
|
_glfwLibrary.hints.stereo = hint; |
|
|
|
_glfwLibrary.hints.stereo = hint; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case GLFW_WINDOW_NO_RESIZE: |
|
|
|
case GLFW_WINDOW_RESIZABLE: |
|
|
|
_glfwLibrary.hints.windowNoResize = hint; |
|
|
|
_glfwLibrary.hints.resizable = hint; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case GLFW_FSAA_SAMPLES: |
|
|
|
case GLFW_FSAA_SAMPLES: |
|
|
|
_glfwLibrary.hints.samples = hint; |
|
|
|
_glfwLibrary.hints.samples = hint; |
|
|
@ -707,8 +710,8 @@ GLFWAPI int glfwGetWindowParam(GLFWwindow handle, int param) |
|
|
|
return window->stereo; |
|
|
|
return window->stereo; |
|
|
|
case GLFW_REFRESH_RATE: |
|
|
|
case GLFW_REFRESH_RATE: |
|
|
|
return window->refreshRate; |
|
|
|
return window->refreshRate; |
|
|
|
case GLFW_WINDOW_NO_RESIZE: |
|
|
|
case GLFW_WINDOW_RESIZABLE: |
|
|
|
return window->windowNoResize; |
|
|
|
return window->resizable; |
|
|
|
case GLFW_FSAA_SAMPLES: |
|
|
|
case GLFW_FSAA_SAMPLES: |
|
|
|
return window->samples; |
|
|
|
return window->samples; |
|
|
|
case GLFW_OPENGL_VERSION_MAJOR: |
|
|
|
case GLFW_OPENGL_VERSION_MAJOR: |
|
|
|