Jump to content
  • Advertisement
Sign in to follow this  
Cacks

OpenGL OpenGL & VC++ .NET

This topic is 4731 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 guys, im learning OpenGL, reading Beginning OpenGL Programming. It shows how to setup a Win32 window with OpenGL. But I was wondering could any1 point me to some tutorials for creating a VC++ .Net window with an OpenGL rendering context. Cos I have some experience with .Net programming but no Win32, and would like to use some of the .Net features eg i'd like to call glIsEnabled(?) and have a .Net box pop up with the result. Googled it but couldn't see anything. Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Try http://nehe.gamedev.net. All the tutorials can be downloaded for basically every compiler out there. And there are those you can download for .NET.

Although, if you're trying to create an OpenGL window using the WinForms in .NET, then basically all you have to change is instead of sending the Hwnd property of the window, send the Handle property when initializing the context.

Share this post


Link to post
Share on other sites
Are the WGL functions defined in the windows.h header?

Would I just create a .NET form application then use the WGL functions but
get the Window handle using getHandle() and pass it to the rendering context?
Pixel Formats would be the same then if i'm using WGL functions?

Is there any way of placing an OpenGL rendering context in a sub region of
a window so I could put buttons in the same window?

Thanks!

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!