Sign in to follow this  
shane1985

OpenGL Rendering OpenGL in a Window with C#

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this