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 3 of 3

Thread: registering callbacks?

  1. #1
    Intern Contributor
    Join Date
    Jan 2004
    Location
    Hoboken,NJ,USA
    Posts
    60

    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

  2. #2
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,527

    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.

  3. #3
    Guest

    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
  •