Library tutorials & articles

OpenGL and C# - Part 1

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

Comments

Leave a comment

Sign in or Join us (it's free).

Johnny I'm doing first year Informatica at academy of Amsterdam
AddThis

Related discussion

Related podcasts

  • Object-Oriented Programming in Ruby

    In this episode, I talk with Scott Bellware about object-oriented programming in Ruby, and Ruby's object model. This is taken from a private conversation, and the audio quality suffers at times. Much thanks to Scott for allowing this to be released.This episode of the Alt.NET Podcast is bro...

Events coming up

  • Aug 28

    St. Louis Day of .NET

    St. Charles, United States

    Technical conference with be 2 full days of content with over 40 sessions from local and national speakers, with topics such as:•.NET languages: C#, VB.NET•Technologies: WPF, Silverlight, WCF•Development tools: Visual Studio, TFS, Expression Blend

We'd love to hear what you think! Submit ideas or give us feedback