Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Zirco

openGL on an application window

This topic is 6276 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!