|
|
|
@ -126,7 +126,7 @@ void _glfwInputWindowDamage(_GLFWwindow* window) |
|
|
|
|
|
|
|
|
|
void _glfwInputWindowCloseRequest(_GLFWwindow* window) |
|
|
|
|
{ |
|
|
|
|
window->closed = GL_TRUE; |
|
|
|
|
window->closed = GL_TRUE; |
|
|
|
|
|
|
|
|
|
if (window->callbacks.close) |
|
|
|
|
window->callbacks.close((GLFWwindow*) window); |
|
|
|
@ -176,6 +176,7 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, |
|
|
|
|
wndconfig.height = height; |
|
|
|
|
wndconfig.title = title; |
|
|
|
|
wndconfig.resizable = _glfw.hints.resizable ? GL_TRUE : GL_FALSE; |
|
|
|
|
wndconfig.undecorated = _glfw.hints.undecorated ? GL_TRUE : GL_FALSE; |
|
|
|
|
wndconfig.visible = _glfw.hints.visible ? GL_TRUE : GL_FALSE; |
|
|
|
|
wndconfig.clientAPI = _glfw.hints.clientAPI; |
|
|
|
|
wndconfig.glMajor = _glfw.hints.glMajor; |
|
|
|
@ -213,9 +214,10 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, |
|
|
|
|
window->videoMode.blueBits = fbconfig.blueBits; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
window->monitor = wndconfig.monitor; |
|
|
|
|
window->resizable = wndconfig.resizable; |
|
|
|
|
window->cursorMode = GLFW_CURSOR_NORMAL; |
|
|
|
|
window->monitor = wndconfig.monitor; |
|
|
|
|
window->resizable = wndconfig.resizable; |
|
|
|
|
window->undecorated = wndconfig.undecorated; |
|
|
|
|
window->cursorMode = GLFW_CURSOR_NORMAL; |
|
|
|
|
|
|
|
|
|
// Save the currently current context so it can be restored later
|
|
|
|
|
previous = (_GLFWwindow*) glfwGetCurrentContext(); |
|
|
|
@ -278,6 +280,7 @@ void glfwDefaultWindowHints(void) |
|
|
|
|
|
|
|
|
|
// The default is to show the window and allow window resizing
|
|
|
|
|
_glfw.hints.resizable = GL_TRUE; |
|
|
|
|
_glfw.hints.undecorated = GL_FALSE; |
|
|
|
|
_glfw.hints.visible = GL_TRUE; |
|
|
|
|
|
|
|
|
|
// The default is 24 bits of color, 24 bits of depth and 8 bits of stencil
|
|
|
|
@ -333,6 +336,9 @@ GLFWAPI void glfwWindowHint(int target, int hint) |
|
|
|
|
case GLFW_RESIZABLE: |
|
|
|
|
_glfw.hints.resizable = hint; |
|
|
|
|
break; |
|
|
|
|
case GLFW_UNDECORATED: |
|
|
|
|
_glfw.hints.undecorated = hint; |
|
|
|
|
break; |
|
|
|
|
case GLFW_VISIBLE: |
|
|
|
|
_glfw.hints.visible = hint; |
|
|
|
|
break; |
|
|
|
@ -540,6 +546,8 @@ GLFWAPI int glfwGetWindowParam(GLFWwindow* handle, int param) |
|
|
|
|
return window->iconified; |
|
|
|
|
case GLFW_RESIZABLE: |
|
|
|
|
return window->resizable; |
|
|
|
|
case GLFW_UNDECORATED: |
|
|
|
|
return window->undecorated; |
|
|
|
|
case GLFW_VISIBLE: |
|
|
|
|
return window->visible; |
|
|
|
|
case GLFW_CLIENT_API: |
|
|
|
|