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: more than one grafic in one window??

  1. #1
    Guest

    more than one grafic in one window??

    HI,

    I would like to display more than one openGL grafic in one window. If I run my program with two different openGL grafics in one window, it shows one expected and one black grafic. It seems to be that the last initialized grafic overrides the other grafic.

    Do somebody know how to solve my problem??

    Thanks a lot....

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Oct 2001
    Posts
    612

    Re: more than one grafic in one window??

    One single HWND cannot have more than one opengl init. if you want to have 2 openglviews you'd better use one openglContext and separate them with glViewport ( both must do a swap at the same time) or create 2 'sub' windows ( borderless windows with your normal window as parent) and init opengl in those. ( everything with a hwnd and a HDC can init opengl, ive tried in a textbox )

Posting Permissions

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