PDA

View Full Version : openGL with c++/cli.NET



LightRoom
11-27-2008, 03:16 AM
Hi, I'm new in OpenGL and I have one question. I make application in c++.net and I need to show 3D space and draw planes and lines. My question : is OpenGL can work under c++.net and can I use GLUT or something other?

Zengar
11-27-2008, 10:24 AM
Ckeck out the Tao bindings and the OpenTK library.

LightRoom
11-27-2008, 11:18 AM
Thank :)

martinsm
11-27-2008, 01:23 PM
If you are using C++/CLI (in /clr or /clr:pure modes) or Managed C++ then you can use OpenGL in same way as from native code. No need to use managed libraries.

Brolingstanz
11-28-2008, 08:22 AM
That's a good strategy since it exposes some optimization possibilities in marshaling your own data. There's some overhead in passing huge arrays to GL through interop and API interaction in general either way though...

I really like the fact that you can bind and use OpenGL directly in C# (can't really do that with DX without an awful lot of work).

ScottManDeath
11-29-2008, 06:01 PM
There is Managed D3D10 http://www.codeplex.com/MD3D10, which is used also in FX Composer. It also has .NET wrappers for D3D9