OpenTK 4.8.0

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package OpenTK --version 4.8.0
NuGet\Install-Package OpenTK -Version 4.8.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OpenTK" Version="4.8.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OpenTK --version 4.8.0
#r "nuget: OpenTK, 4.8.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install OpenTK as a Cake Addin
#addin nuget:?package=OpenTK&version=4.8.0

// Install OpenTK as a Cake Tool
#tool nuget:?package=OpenTK&version=4.8.0

The Open Toolkit is set of fast, low-level C# bindings for OpenGL, OpenGL ES, OpenAL and OpenCL. It runs on all major platforms and powers hundreds of apps, games and scientific research.  It provides bindings for GLFW windowing, input and a game loop, and is the perfect start for your own game engine.  OpenTK comes with simple and easy to follow tutorials for learning *modern* OpenGL. These are written by the community and represent all of the best practices to get you started.  Learn how to use OpenTK here:  Sample projects that accompany the tutorial can be found here:  We have a very active discord server, if you need help, want to help, or are just curious, come join us!

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (149)

Showing the top 5 NuGet packages that depend on OpenTK:

Package Downloads

The Open Toolkit is set of fast, low-level C# bindings for OpenGL, OpenGL ES and OpenAL. It runs on all major platforms and powers hundreds of apps, games and scientific research. OpenTK provides several utility libraries, including a math/linear algebra package, a windowing system, and input handling.

Xamarin.Forms.Platform.WPF The ID prefix of this package has been reserved for one of the owners of this package by

Xamarin Forms Renderer to build native UIs for WPF

SkiaSharp.Views.WindowsForms The ID prefix of this package has been reserved for one of the owners of this package by

SkiaSharp Views & Layers are a set of platform-specific views and containers that can be used to draw on the screen.


Emgu CV is a cross platform .Net wrapper to the OpenCV image processing library. Allowing OpenCV functions to be called from .NET compatible languages such as C#, VB, VC++, IronPython etc. The wrapper can be compiled in Mono and run on Windows, Linux, Mac OS X, iPhone, iPad and Android devices.

Xamarin.Forms.Platform.GTK The ID prefix of this package has been reserved for one of the owners of this package by

Xamarin Forms Renderer to build native UIs for GTK

GitHub repositories (69)

Showing the top 5 popular GitHub repositories that depend on OpenTK:

Repository Stars
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
AssetStudio is a tool for exploring, extracting and exporting assets and assetbundles.
Xamarin.Forms Official Home
Interactive plotting library for .NET
SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
Version Downloads Last updated
5.0.0-pre.8 11,172 10/28/2022
5.0.0-pre.7 8,602 4/19/2022
5.0.0-pre.6 3,776 6/16/2021
5.0.0-pre.5 424 5/29/2021
5.0.0-pre.4 359 5/22/2021
5.0.0-pre.3 8,571 3/10/2021
5.0.0-pre.2 227 3/9/2021
5.0.0-pre.1 518 3/8/2021
4.8.0 10,828 7/17/2023
4.7.7 33,636 2/23/2023
4.7.6 1,228 2/22/2023
4.7.5 43,930 9/8/2022
4.7.4 26,318 6/17/2022
4.7.3 1,430 6/17/2022
4.7.2 377,325 5/3/2022
4.7.1 21,299 2/17/2022
4.6.7 48,555 9/13/2021
4.6.4 30,290 5/28/2021
4.6.3 14,116 3/27/2021
4.6.2 2,874 3/19/2021
4.6.1 2,063 3/19/2021
4.6.0 2,379 3/18/2021
4.5.0 70,616 2/14/2021
4.4.0 20,249 12/16/2020
4.3.0 31,811 11/21/2020
4.2.0 4,677 11/12/2020
4.1.0 3,353 11/6/2020
4.0.6 5,525 10/18/2020
4.0.5 1,510 10/18/2020
4.0.4 1,647 10/17/2020
4.0.3 1,850 10/14/2020
4.0.2 1,834 10/11/2020
4.0.1 2,810 10/6/2020
4.0.0 6,364 10/2/2020
4.0.0-pre9.10 376 10/1/2020
4.0.0-pre9.9 296 9/30/2020
4.0.0-pre9.8 298 9/29/2020
4.0.0-pre9.7 743 9/20/2020
4.0.0-pre9.6 420 9/14/2020
4.0.0-pre9.4 740 8/30/2020
4.0.0-pre9.3 482 8/21/2020
4.0.0-pre9.2 868 7/28/2020
4.0.0-pre9.1 7,616 4/24/2020
4.0.0-pre9 1,489 4/19/2020
4.0.0-pre8 1,333 4/18/2020
4.0.0-pre7 1,195 4/13/2020
4.0.0-pre6 1,249 4/10/2020
4.0.0-pre5 1,412 4/9/2020
4.0.0-pre4 1,292 4/6/2020
4.0.0-pre3 1,666 3/19/2020
4.0.0-pre2 1,256 3/19/2020
4.0.0-pre 1,209 3/19/2020
3.3.3 33,234 9/10/2022
3.3.2 42,836 7/20/2021
3.3.1 49,012 11/6/2020
3.3.0 6,298 11/6/2020
3.2.1 12,247 10/21/2020
3.2.0 132,097 4/6/2020
3.1.0 557,383 8/4/2019
3.0.1 2,037,141 7/6/2018
3.0.0 38,329 5/1/2018
3.0.0-pre 34,639 5/8/2017
2.0.0 250,110 9/23/2016
1.1.2349.61993 61,519 6/7/2016
1.1.2225 213,946 2/4/2016
1.1.1589.5942 121,864 7/18/2014
1.1.1589.5941 55,738 5/9/2014
1.1.1579.5793 2,603 4/29/2014
1.1.1508.5724 7,852 2/17/2014
1.1.1456.5398 4,674 12/27/2013
1.1.1161.61462 3,803 8/28/2013
1.1.1160.61462 6,716 3/7/2013

BREAKING: Renamed the `OpenTK.OpenAL` assembly to `OpenTK.Audio.OpenAL` to match the namespace. (@NogginBops)
BREAKING: Make OpenAL extensions nested classes of `AL` and `ALC` instead of being namespaces to more closely match the OpenGL bindings. (@NogginBops)
BREAKING: Removed `AL.BindBufferToSource`, `AL.GetSourceState`, `AL.GetSourceType`, and `ALC.GetAvailableSamples` that doesn't exist in the OpenAL API (use `AL.Get*` and `ALC.Get*` instead). (@Khhs167, @NogginBops)
BREAKING: `NativeWindow.Location`, `NativeWindow.Size`, and `NativeWindow.Bounds` now correctly refer to the external size and location of the window. (@NogginBops)
BREAKING: Removed a few functions marked `[Obsolete]` since at least `4.7.2` but some even older. (@NogginBops)
BREAKING: Removed `OpenTK.Core.Utils.Swap<T>`, use `MathHelper.Swap<T>` instead. (@NogginBops)
API: Rename `Box.Inflate` to `Box.Extend`, and mark `Box.Inflate` as obsolete so we can change the behavior of `Box.Inflate` in future versions. (@NogginBops)
API: Added `GameWindow.TimeSinceLastUpdate()` and `GameWindow.ResetTimeSinceLastUpdate()` which are useful when dealing with the modal move/resize loop on windows. (@NogginBops)
API: Added `NativeWindow.RawMouseInput` and `NativeWindow.SupportsRawMouseInput` for activating raw mouse input. (@NogginBops)
API: Added opt-in preliminary GLFW Wayland support through the environment variable `OPENTK_4_USE_WAYLAND` (it's broken when used with `GameWindow` or `NativeWindow` in this version). (@NogginBops)
API: Updated the `GameWindow` run loop to be much more accurate. Exposed `GameWindow.ExpectedSchedulerPeriod` to tell OpenTK how accurate `Thread.Sleep` can be expected to be (this defaults to good defaults for Windows, Linux, and macos). (@NogginBops)
FIX: Cleaned up some internal OpenGL definitions (doesn't change any bindings). (@BoyBayKiller)
API: Expose `MouseCursor.StandardShape` as public. (@NogginBops)
API: Add `VectorNi.EuclideanLengthSquared`. (@NogginBops)
FIX: Added helpful exception message to `NativeWindow` when running with trimmed assemblies with a workaround for the issue. (@NogginBops)
FIX: Fixed an issue where starting `NativeWindow` as a fullscreen window and then going to a normal window would throw an exception. (@NogginBops)