views:

256

answers:

1

Hello,

I'm new in OpenGL. I know C# has OpenGl Framework.And we can use it like this:

using CsGL.OpenGL;

Is there a framework for using OpenGL in VC++.net too ?

Best Regards...

+2  A: 

Since you are working in Managed C++, you can access the OpenGL API directly using something like this:

#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.lib")

#include <gl/gl.h>
#include <gl/glu.h>

This article from the code project gives an excellent overview. It provides source code for including an OpenGL rendering context in a win forms application.

Gabe