Results 1 to 4 of 4

Thread: display the same thing in different windows

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2005
    Posts
    15

    display the same thing in different windows

    lets say i have placed a bunch of things in a window, like 2 teapots... and in a different window i want to display the same thing, is there a way to do that without having to set the up again? for example, i do this..

    Code :
        glLoadIdentity();
        glTranslatef(100, 100, 0.0);
        glutWireSphere(50, 10, 10);
        glutWireSphere(50, 100, 10);
    and i want to display that same thing in after i
    glutSetWindow to a different one. do i have to replace the spheres, or is there a way to just re-output everything?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Oct 2004
    Posts
    150

    Re: display the same thing in different windows

    are you using glut?
    if yes you can create a new window and choose the same display function.

    if not you could ocpy the content of the first window into a texture and use this tex in the second window

  3. #3
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: display the same thing in different windows

    Huh ? If you have only 2 views, to best is to redo all calls...

    Texture copy will be slower/harder (unless some very specific cases).
    One way would be display lists, but for only 2 calls I don't think it is worth it. Compile time can be slow.

    Do you want to optimize for speed or for ease of code ?

  4. #4
    Junior Member Newbie
    Join Date
    Sep 2005
    Posts
    15

    Re: display the same thing in different windows

    ease of code... i figured out an easy way to do it... thanks

Similar Threads

  1. Trouble Getting Two Windows to display correctly
    By faulerwulf in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-24-2013, 01:27 PM
  2. Display Multiple windows simultaneously
    By NadeemSyed in forum OpenGL: General
    Replies: 1
    Last Post: 01-22-2006, 07:27 AM
  3. Windows Views and Display Lists
    By mhemsath in forum OpenGL: Windows
    Replies: 1
    Last Post: 01-29-2004, 03:54 PM
  4. Can I display 2 or more windows at a time?
    By songeb in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 02-19-2002, 11:35 PM
  5. Windows vs. Display Lists
    By Cyrius in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 07-15-2000, 12:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean