0

Possible Duplicate:
Using OpenGl with C#?

I'm working on a project for 3D game. I strictly need to use Visual C# with OpenGL in Visual Studio(WPF application).

I dont know anything about C# with OpenGL. Can anyone help me, tell me about which libraries I should use and what should I install to work with Visual C# using OpenGL in WPF application in Visual Studio.

Community
  • 1
  • 1

2 Answers2

1

Check out the Open Toolkit, it's a very well done C# OpenGL wrapper (and I believe OpenAL as well).

Brandon Buck
  • 7,177
  • 2
  • 30
  • 51
0

First I would point out you can't use OpenGL with WPF per say. You have to use a "host container"(aka winforms container) in WPF

You must also use Direct3D 9 to properly use WPF in a game. And you have to use Direct3D9Ex on Vista/7 and normal D3D9 on XP.

Also i'm starting a cross platform project for using D3D9/10 and GL under a common API. Check out "http://code.google.com/p/reign-sdk/"... its waaay in the alpha state but you might find some stuff useful in there.

If you would like I get send you a demo how to use it in D3D10/9 or OpenGL.

Also look up OpenTK for good C# openGL API stuff.

zezba9000
  • 3,247
  • 1
  • 29
  • 51