|
|
|
@ -147,6 +147,7 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, |
|
|
|
|
fbconfig = _glfw.hints.framebuffer; |
|
|
|
|
ctxconfig = _glfw.hints.context; |
|
|
|
|
wndconfig = _glfw.hints.window; |
|
|
|
|
fbconfig.transparent = _glfw.hints.framebuffer.transparent ? GLFW_TRUE : GLFW_FALSE; |
|
|
|
|
|
|
|
|
|
wndconfig.width = width; |
|
|
|
|
wndconfig.height = height; |
|
|
|
@ -180,7 +181,6 @@ GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, |
|
|
|
|
window->monitor = (_GLFWmonitor*) monitor; |
|
|
|
|
window->resizable = wndconfig.resizable; |
|
|
|
|
window->decorated = wndconfig.decorated; |
|
|
|
|
window->transparent = wndconfig.transparent; |
|
|
|
|
window->autoIconify = wndconfig.autoIconify; |
|
|
|
|
window->floating = wndconfig.floating; |
|
|
|
|
window->cursorMode = GLFW_CURSOR_NORMAL; |
|
|
|
@ -250,7 +250,6 @@ void glfwDefaultWindowHints(void) |
|
|
|
|
_glfw.hints.window.resizable = GLFW_TRUE; |
|
|
|
|
_glfw.hints.window.visible = GLFW_TRUE; |
|
|
|
|
_glfw.hints.window.decorated = GLFW_TRUE; |
|
|
|
|
_glfw.hints.window.transparent = GLFW_FALSE; |
|
|
|
|
_glfw.hints.window.focused = GLFW_TRUE; |
|
|
|
|
_glfw.hints.window.autoIconify = GLFW_TRUE; |
|
|
|
|
|
|
|
|
@ -317,6 +316,9 @@ GLFWAPI void glfwWindowHint(int hint, int value) |
|
|
|
|
case GLFW_DOUBLEBUFFER: |
|
|
|
|
_glfw.hints.framebuffer.doublebuffer = value ? GLFW_TRUE : GLFW_FALSE; |
|
|
|
|
return; |
|
|
|
|
case GLFW_TRANSPARENT: |
|
|
|
|
_glfw.hints.framebuffer.transparent = value ? GLFW_TRUE : GLFW_FALSE; |
|
|
|
|
return; |
|
|
|
|
case GLFW_SAMPLES: |
|
|
|
|
_glfw.hints.framebuffer.samples = value; |
|
|
|
|
return; |
|
|
|
@ -329,9 +331,6 @@ GLFWAPI void glfwWindowHint(int hint, int value) |
|
|
|
|
case GLFW_DECORATED: |
|
|
|
|
_glfw.hints.window.decorated = value ? GLFW_TRUE : GLFW_FALSE; |
|
|
|
|
return; |
|
|
|
|
case GLFW_TRANSPARENT: |
|
|
|
|
_glfw.hints.window.transparent = value ? GLFW_TRUE : GLFW_FALSE; |
|
|
|
|
return; |
|
|
|
|
case GLFW_FOCUSED: |
|
|
|
|
_glfw.hints.window.focused = value ? GLFW_TRUE : GLFW_FALSE; |
|
|
|
|
return; |
|
|
|
@ -733,8 +732,6 @@ GLFWAPI int glfwGetWindowAttrib(GLFWwindow* handle, int attrib) |
|
|
|
|
return window->resizable; |
|
|
|
|
case GLFW_DECORATED: |
|
|
|
|
return window->decorated; |
|
|
|
|
case GLFW_TRANSPARENT: |
|
|
|
|
return window->transparent; |
|
|
|
|
case GLFW_FLOATING: |
|
|
|
|
return window->floating; |
|
|
|
|
case GLFW_AUTO_ICONIFY: |
|
|
|
|