Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenGL in C# in WinForms

I have to write a simple program that will draw something in a Windows Forms Application using OpenGL and C#? Can you give me example of library and/or maybe a tutorial? I found this: http://sourceforge.net/projects/csgl/files/CsGL/1.4.1/ but it is from 2002. Is there anything newer?

like image 589
Miko Kronn Avatar asked Jan 08 '11 15:01

Miko Kronn


2 Answers

You could check this out: http://opentk.net/

The Open Toolkit is set of fast, low-level C# bindings for OpenGL, OpenGL ES and OpenAL. It runs on all major platforms and powers hundreds of apps, games and scientific research.

OpenTK provides several utility libraries, including a math/linear algebra package, a windowing system, and input handling.

like image 82
Durza007 Avatar answered Oct 04 '22 07:10

Durza007


Another alternative is SharpGL on Code Project.

like image 30
ChrisF Avatar answered Oct 04 '22 07:10

ChrisF