Jump to content
  • Advertisement
Sign in to follow this  
kuldeepiitk

Rendering in the same window

This topic is 4872 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

Hi All, I am imlpementing a Form application in DotNet, and redering an object using glut. I have a button to start the rendering, when I click it, it opens a new window and render the object into this new window. I am using glutInit(), glutInitDisplayMode(), glutInitWindowPosition(), glutInitWindowSize() and glutCreateWindow(). However I want to render this object in the same Form where I have this button, is there any way I can do this, maybe in a pitureBox. Thanx in advance, Kuldeep

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
yes you can. you need to use csgl (abandonware) or the tao framework (constantly being revamped).

i actually made a class derived from PictureBox that sets up the rendering context and allows opengl to be used to render in the pb. added this to the toolbox of components and viola, drag and drop opengl in .NET. The bad part of this is the necessity to create a render loop within the Form instance ... bt once you figure this out, the rest is pretty straightforward.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!