PDA

View Full Version : Window coordinates



Pedro Ferreira
05-15-2001, 09:18 AM
Hi to all, please help me on this one:
How can I have my opengl aplication opening the window allways in the exact location that I've previously closed it?
Thanks,
Pedro

Boresight
05-15-2001, 10:04 AM
This isn't bussines of OpenGL, it's of Windows System

Pedro Ferreira
05-15-2001, 10:06 AM
Originally posted by Boresight:
This isn't bussines of OpenGL, it's of Windows System

So, how do I implement it on my OPENGL APLICATION?
Pedro

bsperlin
05-16-2001, 09:55 AM
When you pass thru main, your glutInitWindowSize and glutInitWindowPosition could be set with globals that can be used later to set windows where you want them to be, or initialize globals to just the values you want and use them in main and elsewhere.