This document is archived and information here might be outdated.  Recommended version.


How to get and install an OpenGL wrapper for .NET (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > Developing with ArcGIS > Learning ArcObjects > ArcGIS extensions > 3D Analyst > Visualizing in 3D > Dynamic content > How to get and install an OpenGL wrapper for .NET (ArcObjects .NET 10.6 SDK)

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/projects/csgl/files/CsGL/1.4.1/
  2. Download csgl.1.4.1.dll.zip to your local drive and unzip it. See the following screen shot:




  3. 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