-
registering callbacks?
I am interested in creating more than one window in the same process. When I register a callback, the call has no parameter indicating which window is relevant. How can I tell?
Also, if there are two separate windows, with two identical scenes, and the only difference is the viewpoint, is there any standard way of rendering twice without redrawing the same scene, just changing the viewpoint?
thanks,
Dov
-
Senior Member
OpenGL Guru
Re: registering callbacks?
Is this GLUT? Never tried.
For Win32 API you can easily specify different window procedures and or put private data to the window with SetWindowLong(GWL_USERDATA), GetWindowLong(GWL_USERDATA).
Think of the viewport as a final scale matrix, all geometry has to go through it again for a differently sized image.
-
Re: registering callbacks?
To render two times the world with only minimal changes, uses display lists to store the common parts. You may have to wglShareLists to make it work across rendering contexts.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules