Introduction
I’m glad to be the first one writing about OpenGL at this site. What I
want to show you in this article is that it is fairly easy to setup a form that
is capable of showing 3D. We will accomplish this with the OpenGLControl. So
before we can start we (that means you) have to download CsGL here,
or if it isn’t there anymore, from its project
page. For this article
I used the CsGL version 1.4.0 I think it will run on later versions though.
Ok let we start. First thing to do is make a new Windows Application. Which
I called SimpelOpenGL but its not important. Ok when that done popup the “Solution
explorer” and “add reference” the reference for CsGL must
be in "D:\WINDOWS\system32\" which are called csgl.dll and csgl-base.dllnotice
that there is .dll called csgl-native.dll but you don’t need
it.
Ok import the following namespaces
-
System.Threading
-
CsGL.OpenGL