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?