PDA

View Full Version : .NET wrapper for OpenGL



mikeheck
05-21-2010, 08:08 PM
What are people using to make OpenGL calls from a C# program?

Any experience with OpenTK? (http://www.opentk.com/)

I found half a dozen other links with Google, but they all seem to be "page not found". :-)

Thanks,
Mike

deegee
05-23-2010, 01:45 PM
A "wrapper" isn't required, you can simply call the API like you would any other, eg. Win32.
If you need some code to get started though, such as the various API constants and defines, check out CodeProject or Google it.
http://www.codeproject.com/KB/openGL/sharpgl.aspx
http://csgl.sourceforge.net/
The online help with VC# also includes the information on most OpenGL API calls up to around 2.x.

James A.
05-23-2010, 04:48 PM
http://www.codeproject.com/KB/miscctrl/OpenGLViewWinForms.aspx

I like using a C++/CLI native window to create an openGL context. Then i can share a lot of source with my purely native openGL apps.

Iliak
06-07-2010, 07:33 AM
OpenTK works like a charm for me !

HowitZer
09-12-2010, 01:13 PM
http://sourceforge.net/projects/taoframework/

Works great for me.