How to get and install an OpenGL wrapper for .NET


Summary To use the direct OpenGL plug-in for GlobeControl and ArcGlobe, you must call an OpenGL application programming interface (API). However, currently there is no managed OpenGL library that is a part of the .NET framework. For that reason, you need to use an Open Source managed wrapper library for OpenGL or directly import the relevant methods into your assembly. This topic shows how to download and include the CsGL-OpenGL.NET library in your code.

Download and include the CsGL-OpenGL.NET library

To download and include the CsGL-OpenGL.NET library in your code, follow these steps:
  1. In your Web browser, navigate to the download site of the CsGL-OpenGL.NET library at:
    http://sourceforge.net/project/showfiles.php?group_id=33241&package_id=38395.
  2. Download csgl.1.4.1.dll.zip to your local drive and unzip it. See the following screen shot:

  1. Add a reference to the CsGL-OpenGL.NET library in your solution. See the following screen shot:

     
You will have to browse for the assembly, since it does not get registered in the global assembly cache (GAC); it does not have a strong name.
  1. Add a using directive in your code. See the following code:
[C#]
using CsGL.OpenGL;


See Also:

How to draw a geographical object on the globe using direct OpenGL plug-in
How to draw mouse feedback on the globe using direct OpenGL plug-in