Jump to content
  • Advertisement
Sign in to follow this  
shane1985

OpenGL Rendering OpenGL in a Window with C#

This topic is 4747 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'm writing a particle engine, where I have a window to render the effect, along with a side panel that has the controls on it used to adjust the parameters. The way I'm doing it right now is with a timer, and rendering whenever it ticks. This way seems to be running really slowly, and I'm wondering how to do it better. I know how to do it in Win32, but just not familiar enough with using OpenGL with .Net. Anyone have any ideas? Thanks -Shane

Share this post


Link to post
Share on other sites
Advertisement
If you look at the examples folder, in the TAO sources, you'll find some NeHe examples translated in C#/TAO... there you'll see how to avoid using the
Application.Run(new Form1());
method (that enables GDI main loop), using a custom application loop that, if I have understood, is what you need... you'll se that it's exactly like C++ examples... :D

Share this post


Link to post
Share on other sites
Its basically the EXACT same as Win32 except you replace hWnd with the form's HANDLE when initializing OpenGL. Its that simple. You don't need any third party library. At least this is how to do it with C++ VC 2005 using WinForms.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!