PDA

View Full Version : more than one grafic in one window??



11-03-2003, 11:04 PM
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....

Mazy
11-03-2003, 11:36 PM
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 http://www.opengl.org/discussion_boards/ubb/smile.gif )