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

Thread: How to manage more than one opengl window under linux

  1. #1
    Guest

    How to manage more than one opengl window under linux

    I need two or more opengl window for my project,I know that I can use subwindowing a
    main window but before that I wish to know:

    How can I create and manage more than one opengl window under linux. How can I send say sin(x) to window 1 and cos(x) to window 2 at run time and change the order or send anything else.

  2. #2
    Guest

    Re: How to manage more than one opengl window under linux

    If you are using a QT or GTK+ for your software, read their documentation, it should be fairly simple to do.

    If your writing your own code from scratch (XLib), then just set up 2 differnt windows, and 2 different GLX Contexts. I'm guessing you can swap them with glXMakeCurrent..

    Ed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •