The Open Toolkit library is a fast, low-level C# binding for OpenGL, OpenGL ES and OpenAL. It runs on all major platforms and powers hundreds of apps, games and scientific research.
Use OpenTK to add cross-platform 3d graphics, audio, compute and haptics to your C# application. Integrate it into your existing user interface or use it standalone without any external dependencies.
Project website: https://www.opentk.com/
Official git repository: https://github.com/opentk/opentk
- Create cutting-edge graphics with OpenGL 4.4 and OpenGL ES 3.0
- Spice up your GUI with 3d acceleration
- Improve your code flow with strong types and inline documentation
- Write once run everywhere
OpenTK is available for Windows, Linux, Mac OS X, *BSD, SteamOS, Android and iOS. It can be used standalone or integrated into a GUI (Windows.Forms, WPF, GTK+, Qt, VTK, ...)
Download binaries or NuGet packages
The simplest way to use OpenTK in your project is to install the NuGet package.
Alternatively, download the OpenTK binaries and:
- Copy OpenTK.dll and OpenTK.dll.config to your project directory
- Use "Add reference" to add OpenTK.dll as a project reference
- Use "Add files" to add OpenTK.dll.config to your project, and enable the "Copy to Output Directory" option.
To build OpenTK from source, simply double-click OpenTK.sln and build through your IDE.
Alternatively, open a command prompt and type:
git clone https://github.com/opentk/opentk # Download source code from git
cd opentk # Enter the source directory
msbuild /p:Configuration=Release OpenTK.sln # Build on .Net (Windows)
xbuild /p:Configuration=Release OpenTK.sln # Build on Mono (Linux / Mac OS X)