OpenTK 5.0.0-pre.11
Prefix ReservedSee the version list below for details.
dotnet add package OpenTK --version 5.0.0-pre.11
NuGet\Install-Package OpenTK -Version 5.0.0-pre.11
<PackageReference Include="OpenTK" Version="5.0.0-pre.11" />
<PackageVersion Include="OpenTK" Version="5.0.0-pre.11" />
<PackageReference Include="OpenTK" />
paket add OpenTK --version 5.0.0-pre.11
#r "nuget: OpenTK, 5.0.0-pre.11"
#:package OpenTK@5.0.0-pre.11
#addin nuget:?package=OpenTK&version=5.0.0-pre.11&prerelease
#tool nuget:?package=OpenTK&version=5.0.0-pre.11&prerelease
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: https://opentk.net/learn/index.html Sample projects that accompany the tutorial can be found here: https://github.com/opentk/LearnOpenTK We have a very active discord server, if you need help, want to help, or are just curious, come join us! https://discord.gg/6HqD48s
Learn more about Target Frameworks and .NET Standard.
-
- OpenTK.Audio.OpenAL (>= 5.0.0-pre.11)
- OpenTK.Compute (>= 5.0.0-pre.11)
- OpenTK.Core (>= 5.0.0-pre.11)
- OpenTK.Graphics (>= 5.0.0-pre.11)
- OpenTK.Input (>= 5.0.0-pre.11)
- OpenTK.Mathematics (>= 5.0.0-pre.11)
- OpenTK.Platform (>= 5.0.0-pre.11)
- OpenTK.Windowing.Common (>= 5.0.0-pre.11)
- OpenTK.Windowing.Desktop (>= 5.0.0-pre.11)
- OpenTK.Windowing.GraphicsLibraryFramework (>= 5.0.0-pre.11)
NuGet packages (228)
Showing the top 5 NuGet packages that depend on OpenTK:
| Package | Downloads |
|---|---|
|
Xamarin.Forms.Platform.WPF
Xamarin Forms Renderer to build native UIs for WPF |
|
|
SkiaSharp.Views.WPF
SkiaSharp Views & Layers are a set of platform-specific views and containers that can be used to draw on the screen. |
|
|
VisioForge.DotNet.Core
VisioForge .Net products for video capture, editing and playback (Video Capture SDK, Media Player SDK, Video Edit SDK). Core package. |
|
|
SkiaSharp.Views.WindowsForms
SkiaSharp Views & Layers are a set of platform-specific views and containers that can be used to draw on the screen. |
|
|
OpenTK.GLWpfControl
A native WPF control for OpenTK 5.X. |
GitHub repositories (92)
Showing the top 20 popular GitHub repositories that depend on OpenTK:
| Repository | Stars |
|---|---|
|
dotnet/maui
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
|
|
|
Perfare/AssetStudio
AssetStudio is a tool for exploring, extracting and exporting assets and assetbundles.
|
|
|
ScottPlot/ScottPlot
Interactive plotting library for .NET
|
|
|
mono/SkiaSharp
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.
|
|
|
xamarin/Xamarin.Forms
Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
|
|
|
space-wizards/space-station-14
A multiplayer game about paranoia and chaos on a space station. Remake of the cult-classic Space Station 13.
|
|
|
4sval/FModel
Unreal Engine Archives Explorer
|
|
|
ValveResourceFormat/ValveResourceFormat
Source 2 Viewer is an all-in-one tool to browse VPK archives, view, extract, and decompile Source 2 assets, including maps, models, materials, textures, sounds, and more.
|
|
|
ArduPilot/MissionPlanner
Mission Planner Ground Control Station for ArduPilot (c# .net)
|
|
|
videolan/libvlcsharp
Cross-platform .NET/Mono bindings for LibVLC
|
|
|
RazTools/Studio
Modded AssetStudio with new features
|
|
|
swharden/Csharp-Data-Visualization
Resources for visualizing data using C# and the .NET platform
|
|
|
BluestormDNA/ProjectPSX
Experimental C# Playstation Emulator
|
|
|
Wouterdek/NodeNetwork
A C# library with a WPF node editor component based on ReactiveUI
|
|
|
AgOpenGPS-Official/AgOpenGPS
Ag Precision Mapping, Section Control and Guidance Software
|
|
|
EDDiscovery/EDDiscovery
Captains log and 3d star map for Elite Dangerous
|
|
|
MyraUI/Myra
UI Library for MonoGame, FNA and Stride
|
|
|
maxim-saplin/CrossPlatformDiskTest
Windows, macOS and Android storage (HDD, SSD, RAM) speed testing/performance benchmarking app
|
|
|
ThisIsNotRocketScience/GerberTools
Tools to load/edit/create/panelizer sets of gerber files
|
|
|
john-h-k/MathSharp
A vector and matrix library written in C# using hardware intrinsics
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 5.0.0-pre.16 | 1,443 | 5/17/2026 | |
| 5.0.0-pre.15 | 5,752 | 8/24/2025 | |
| 5.0.0-pre.14 | 1,590 | 7/11/2025 | |
| 5.0.0-pre.13 | 8,670 | 11/11/2024 | |
| 5.0.0-pre.12 | 3,267 | 9/25/2024 | |
| 5.0.0-pre.11 | 2,118 | 8/9/2024 | |
| 5.0.0-pre.10 | 7,056 | 3/7/2024 | |
| 5.0.0-pre.9 | 4,215 | 10/16/2023 | |
| 5.0.0-pre.8 | 18,199 | 10/28/2022 | |
| 4.9.4 | 2,032,436 | 3/17/2025 | |
| 4.9.3 | 65,131 | 12/10/2024 | |
| 4.9.2 | 17,232 | 12/10/2024 | |
| 4.9.1 | 20,909 | 12/2/2024 | |
| 4.8.2 | 416,919 | 12/2/2023 | |
| 4.8.1 | 40,718 | 9/27/2023 | |
| 4.8.0 | 71,901 | 7/17/2023 | |
| 4.7.7 | 93,195 | 2/23/2023 | |
| 4.7.6 | 25,866 | 2/22/2023 | |
| 3.3.3 | 214,273 | 9/10/2022 |
Updated all projects to target .net8.0. (@NogginBops)
Removed `MathHelper` functions that just called directly into `Math` and `MathF`. (@BoyBaykiller)
Removed old quake inverse sqrt implementation in `MathHelper.InverseSqrtFast` in favour of `Math(F).ReciprocalSqrtEstimate`. (@BoyBaykiller)
SIMD optimized all MatrixNxM and VectorN equals checks. (@BoyBayKiller, @NogginBops)
Vector2d.SizeInBytes returns 16 instead of 8. (@BoyBayKiller)
Merged latest OpenTK 4.8.3 changes onto 5.0-pre.11. (@NogginBops)
This means that some changes from the upcoming 4.8.3 are also in this release.
See https://github.com/opentk/opentk/pull/1734 for full details.
Some of these changes includes:
Update to GLFW 3.4. (@NogginBops)
Add swizzle matrices and general math fixes. (@NogginBops)
Add `VectorN.Slerp` (spherical interpolation) and `VectorN.Elerp` (exponential interpolation). (@NogginBops)
Unclamp `MathHelper.Lerp` so t outside [0, 1] can be used. (@NogginBops)
[OpenAL fixes.](https://github.com/opentk/opentk/pull/1716) (@NogginBops)
Vulkan bindings changes:**
Added Vulkan API bindings in `OpenTK.Graphics.Vulkan`. Feedback welcome! (@NogginBops)
OpenGL bindings changes:**
Removed all automatic length calculations from the OpenGL bindings. (@NogginBops)
Added `Span<T>` and `T[]` overloads for functions without specified size. (@NogginBops)
Switch to using `out` by default, and use automatic and manual marking for `in` and `ref`. (@NogginBops)
Only convert `out` parameters to return values if they are the last `out` parameter. This removes some weird overloads. (@NogginBops)
Update to latest gl.xml and wgl.xml, resulting in more up to date API definition. (@NogginBops)
Don't generate return overloads for functions that return more than one item. (@NogginBops)
PAL2 changes:**
Introduced the `Toolkit` static class and `ToolkitOptions` which are the main interface for PAL2. (@NogginBops)
[Added Bejeweled PAL2 demo project.](https://github.com/opentk/opentk/tree/opentk5.0/tests/Bejeweled) (@NogginBops)
Removed the old `ComponentSet` class. (@NogginBops)
Added `IDialogComponent` for opening message boxes and open/save file dialogs. (@NogginBops)
Added `OpenGLGraphicsAPIHints.ContextValueSelector` callback which allows users to enumerate available backbuffer formats when creating a context. Defaults to `ContextValues.DefaultValuesSelector`. (@NogginBops)
Added `IWindowComponent.GetFramebufferSize` and `WindowFramebufferSize` event. (@NogginBops)
Added `IWindowComponent.IsFocused`. (@NogginBops)
Added `IWindowComponent.GetScaleFactor` (@NogginBops)
Added raw mouse motion API to `IMouseComponent`. (@NogginBops)
Added `PixelFormat`, `SwapMethod`, `RobustnessFlag`, `ResetNotificationStrategy`, `ResetIsolationFlag`, `NoErrorFlag`, `UseFlushControl`, and `ReleaseBehaviour` to `OpenGLGraphicsApiHints`. (@NogginBops)
Removed `IClipboardComponent.GetClipboardHTML`. (@NogginBops)
win32:
win32: Implemented `IDialogComponent`. (@NogginBops)
win32: Implemented `ContextValueSelector`. (@NogginBops)
win32: Add `OpenTK.Platform.Windows.OpenGLComponent.UseDwmFlushIfApplicable()` to control whether OpenTK should call `DwmFlush` to potentially fix Vsync issues. (@NogginBops)
win32: Fix issue where `ShellComponent.SetImmersiveDarkMode` wouldn't trigger a redraw of the window frame. (@NogginBops)
win32: Added `ShellComponent.SetWindowCornerPreference` to control Windows 11 rounded corners. (@NogginBops)
win32: Implemented `WindowComponent.GetScaleFactor`. (@NogginBops)
win32: Fixed issue where `WindowBorderStyle.FixedBorder` would still have the maximize button enabled. (@NogginBops)
win32: Fixed issue where `ContextStencilBits.None` and `ContextDepthBits.None` would throw an exception. (@NogginBops)
win32: Implemented `IWindowComponent.ProcessEvents(waitForEvents: true)`. (@NogginBops)
win32: Added `ToolkitOptions.Windows.EnableVisualStyles` (default true) which enables visual styles for message dialogs to work. (@NogginBops)
win32: Added `PixelFormat`, `SwapMethod`, `RobustnessFlag`, `ResetNotificationStrategy`, `ResetIsolationFlag`, `NoErrorFlag`, `UseFlushControl`, and `ReleaseBehaviour` in `OpenGLGraphicsApiHints`. (@NogginBops)
macOS:
macOS: Implemented `WindowMode.WindowedFullscreen`. (@NogginBops)
macOS: Implemented `MacOSDialogComponent.OpenFileDialog/SaveFileDialog`. (@NogginBops)
macOS: Implemented `MacOSClipboardComponent` except `MacOSClipboardComponent.GetClipboardAudio`. (@NogginBops)
macOS: Implemented `ClipboardUpdate` event. (@NogginBops)
macOS: Implemented `ContextValuesSelector` with default `OpenGLGraphicsApiHints.UseSelectorOnMacOS = false` due to large overhead enumerating context values on macOS. (@NogginBops)
macOS: Implemented `MacOSWindowComponent.GetFullscreenDisplay/SetFullscreenDisplay`. (@NogginBops)
macOS: Add `MacOSWindowComponent.SetFullscreenNoSpace` to set an window as fullscreen without opening a new space for the window. (@NogginBops)
macOS: Implemented `MacOSWindowComponent.SetCursorCaptureMode/GetCursorCaptureMode`. (@NogginBops)
macOS: Implemented `MacOSClipboardComponent.SetClipboardBitmap`. (@NogginBops)
macOS: Implemented `FileDrop` event. (@NogginBops)
macOS: Implemented `WindowScaleChange` event. (@NogginBops)
macOS: Implemented `MacOSWindowComponent.SetClientPosition`. (@NogginBops)
macOS: Implemented `MacOSWindowComponent.SetClientBounds`. (@NogginBops)
macOS: Implemented `MacOSWindowComponent.ScreenToClient/ClientToScreen`. (@NogginBops)
macOS: Implemented `MacOSWindowComponent.GetScaleFactor`. (@NogginBops)
macOS: Fixed Y flipping issue in `MacOSMouseComponent`. (@NogginBops)
macOS: Fixed invisible cursor. (@NogginBops)
macOS: Fix bug where `MacOSWindowComponent.SetMaxClientSize` would set the minimum client size. (@NogginBops)
x11:
x11: Implemented `X11DialogComponent` using Zenity when available. (@NogginBops)
x11: Set `WM_CLASS` to get proper window name in app switcher. (@NogginBops)
x11: Implemented `ThemeChange` event. (@NogginBops)
x11: Detect high contrast mode through `org.gnome.desktop.a11y.interface` when available. (@NogginBops)
x11: Detect power saver mode. (@NogginBops)
x11: Added `X11WindowComponent.GetIconifiedTitle/SetIconifiedTitle`. (@NogginBops)
x11: Fixed XRandR loading the correct .so file. (@NogginBops)
x11: Fixed color byte order for `X11CursorComponent.Create()`. (@NogginBops)
x11: Fixed issue where `ContextStencilBits.None` and `ContextDepthBits.None` would throw an exception. (@NogginBops)
x11: Implemented `FramebufferResize` event. (@NogginBops)
x11: Implemented `ContextValuesSelector`. (@NogginBops)
x11: Implemented `PixelFormat`, `SwapMethod`, `RobustnessFlag`, `ResetNotificationStrategy`, `ResetIsolationFlag`, `NoErrorFlag`, `UseFlushControl`, and `ReleaseBehaviour` in `OpenGLGraphicsApiHints`. (@NogginBops)
ANGLE:
ANGLE: Implemented `ContextValuesSelector`. (@NogginBops)
ANGLE: Known issue on x11 is that `ANGLEOpenGLComponent` will throw an exception.