Hi, I’ve just upgraded to glfw 3.2 and it seems the hint
glfwWindowHint(GLFW_MAXIMIZED, 1)
does have no effect
If I try to use
glfwMaximizeWindow(window)
then it works instead.
I’ve built glfw from sources with CodeBlocks on Windows 7 x64 using the TDM-GCC compiler, and I’m using the dll version of the library.
The snippet of code I have used is
glfwSetErrorCallback(@error_callback())
If glfwInit()
glfwDefaultWindowHints()
glfwWindowHint(#GLFW_CLIENT_API, #GLFW_OPENGL_API)
glfwWindowHint(#GLFW_OPENGL_DEBUG_CONTEXT, 1)
glfwWindowHint(#GLFW_CONTEXT_VERSION_MAJOR, 1)
glfwWindowHint(#GLFW_CONTEXT_VERSION_MINOR, 0)
glfwWindowHint(#GLFW_MAXIMIZED, 1)
window = glfwCreateWindow(640, 480, "TEST", #Null, #Null)
If window
glfwMakeContextCurrent(window)
Debug PeekS(glGetString_(#GL_VENDOR),-1,#PB_Ascii)
Debug PeekS(glGetString_(#GL_RENDERER),-1,#PB_Ascii)
Debug PeekS(glGetString_(#GL_VERSION),-1,#PB_Ascii)
glfwSetKeyCallback(window, @key_callback())
glfwSetCharCallback(window, @char_Callback())
While (glfwWindowShouldClose(window) = 0)
Render(window)
glfwPollEvents()
Wend
EndIf
glfwTerminate()
EndIf
Don’t mind the strange (to you) syntax, it’s a BASIC language.
Did I do something wrong ?