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: Open a new window in run-time [GLUT]

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2009
    Posts
    1

    Open a new window in run-time [GLUT]

    Hi,
    I'm a novice OpenGL developer and I'm using GLUT for my first project.

    Is there the possibility to open/close one or more OpenGL windows during run time? For example in new threads?

    My idea is this:
    IF (user click onto a object)
    THEN (I open a new window with the magnification of the object from many different perspectives)
    UNTIL (I close all the magnification windows when the user click onto other places)

    Thanks to all
    best regards

  2. #2
    Junior Member Regular Contributor
    Join Date
    Jun 2009
    Location
    FL , USA
    Posts
    194

    Re: Open a new window in run-time [GLUT]

    You can create an object with a method of setting up camera parameters and initiating a window formation. (InitDisplay...)

    Then each time a user clicks on object , instantiate the class. you get new object with different memory, call the method containing InitDisplay().. etc.

Posting Permissions

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