PDA

View Full Version : Open a new window in run-time [GLUT]



Neofita
07-16-2009, 08:34 AM
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

awhig
07-16-2009, 12:39 PM
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.