Advertisement

openGL on an application window

Started by September 06, 2001 01:38 PM
1 comment, last by Zirco 23 years, 5 months ago
I want to know how to put an openGL place on a form of an application. like in modeling programs where there are multiple openGL places on a single window.
I think you have two options:

1- Create a window, then subdivide it by
Setting the viewport to a zone of the window, then render, set the viewport to another zone of the window, then render from other perspective; set the viewport to another area of window, then render... and so on.

2- Make an MDI (Multiple Document err... window -- I don''t remember now what the name was ) and set a viewport for every child window you create.

HTH
Advertisement
You can create an OpenGL context on any valid DC. If you have access to a panel or a frame, you can simply assign your GL context to THAT DC instead of the form''s.

Jason

This topic is closed to new replies.

Advertisement