Toggle Fullscreen at Runtime
Posted
by
sharethis
on Game Development
See other posts from Game Development
or by sharethis
Published on 2012-10-09T18:21:03Z
Indexed on
2012/10/09
22:00 UTC
Read the original article
Hit count: 178
Using the library GLFW, I can create a fullscreen window using this line of code.
glfwOpenWindow(Width, Height, 8, 8, 8, 8, 24, 0, GLFW_FULLSCREEN);
The line for creating a standard window looks like this.
glfwOpenWindow(Width, Height, 8, 8, 8, 8, 24, 0, GLFW_WINDOW);
What I want to do is letting the user switch between standard window and fullscreen by a keypress, let's say F11
.
It there a common practice of toggling fullscreen mode? What do I have to consider?
© Game Development or respective owner