Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: GLFW close and restore window

  1. #1
    Junior Member Regular Contributor Kopelrativ's Avatar
    Join Date
    Apr 2011
    Posts
    212

    GLFW close and restore window

    I am using Ubuntu and want to leave full screen mode for a while and then go back to full screen again. I am not sure how to best do this. I tried the following:
    Code :
    glfwCloseWindow();
    while(glfwGetWindowParam(GLFW_OPENED)) {
    	glfwPollEvents();
    }
    Immediately after this, the window is still open. How can I find out when the window has actually closed?

    There is the same problem if I try glfwIconifyWindow().

  2. #2
    Senior Member OpenGL Guru
    Join Date
    May 2009
    Posts
    4,719

    Re: GLFW close and restore window

    It's probably a design issue in GLFW. GLFW was written with games in mind, and many games are just fine with not being able to switch from fullscreen to windowed and back. You may want to ask directly on their mailing lists or something.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •