OpenTK.Windowing.GraphicsLibraryFramework 5.0.0-pre.11

Prefix Reserved
This is a prerelease version of OpenTK.Windowing.GraphicsLibraryFramework.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package OpenTK.Windowing.GraphicsLibraryFramework --version 5.0.0-pre.11
                    
NuGet\Install-Package OpenTK.Windowing.GraphicsLibraryFramework -Version 5.0.0-pre.11
                    
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.Windowing.GraphicsLibraryFramework" Version="5.0.0-pre.11" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OpenTK.Windowing.GraphicsLibraryFramework" Version="5.0.0-pre.11" />
                    
Directory.Packages.props
<PackageReference Include="OpenTK.Windowing.GraphicsLibraryFramework" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OpenTK.Windowing.GraphicsLibraryFramework --version 5.0.0-pre.11
                    
#r "nuget: OpenTK.Windowing.GraphicsLibraryFramework, 5.0.0-pre.11"
                    
#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.
#:package OpenTK.Windowing.GraphicsLibraryFramework@5.0.0-pre.11
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OpenTK.Windowing.GraphicsLibraryFramework&version=5.0.0-pre.11&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=OpenTK.Windowing.GraphicsLibraryFramework&version=5.0.0-pre.11&prerelease
                    
Install as a Cake Tool

GLFW bindings for C# from the C GLFW library.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on OpenTK.Windowing.GraphicsLibraryFramework:

Package Downloads
OpenTK

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

OpenTK.Windowing.Desktop

An abstraction over OpenTK.GraphicsLibraryFramework to provide a ready-to-go easy-to-use windowing and input abstraction.

Bearded.Utilities

Set of basic utilities on top of OpenTK, mostly aimed at games.

SharpGDX.Desktop

C# Port of Java's libGDX (Desktop).

Bearded.Graphics

Package Description

GitHub repositories (4)

Showing the top 4 popular GitHub repositories that depend on OpenTK.Windowing.GraphicsLibraryFramework:

Repository Stars
b-editor/beutl
Cross-platform video editing (compositing) software.
BoyBaykiller/IDKEngine
OpenGL Toy-"Engine" with Wavefront Path Tracer and Rasterizer with Voxel Cone Tracing/Global Illumination
anegostudios/vssurvivalmod
The Vanilla Survival Mod
anegostudios/vsapi
Source code of the vintage story api module.
Version Downloads Last Updated
5.0.0-pre.15 1,664 8/24/2025
5.0.0-pre.14 745 7/11/2025
5.0.0-pre.13 11,640 11/11/2024
5.0.0-pre.12 3,045 9/25/2024
5.0.0-pre.11 2,146 8/9/2024
5.0.0-pre.10 6,841 3/7/2024
5.0.0-pre.9 5,848 10/16/2023
5.0.0-pre.8 18,220 10/28/2022
5.0.0-pre.7 9,505 4/19/2022
5.0.0-pre.6 4,515 6/16/2021
5.0.0-pre.5 688 5/29/2021
5.0.0-pre.4 630 5/22/2021
5.0.0-pre.3 8,686 3/10/2021
5.0.0-pre.2 517 3/9/2021
5.0.0-pre.1 986 3/8/2021
4.9.4 291,950 3/17/2025
4.9.3 58,231 12/10/2024
4.9.2 6,841 12/10/2024
4.9.1 8,845 12/2/2024
4.8.2 409,260 12/2/2023
4.8.1 40,025 9/27/2023
4.8.0 54,623 7/17/2023
4.7.7 125,863 2/23/2023
4.7.6 9,390 2/22/2023
4.7.5 101,846 9/8/2022
4.7.4 71,870 6/17/2022
4.7.3 6,523 6/17/2022
4.7.2 2,372,298 5/3/2022
4.7.1 35,067 2/17/2022
4.7.0 6,585 2/16/2022
4.6.7 92,268 9/13/2021
4.6.6 6,174 9/13/2021
4.6.5 6,079 9/13/2021
4.6.4 77,036 5/28/2021
4.6.3 19,386 3/27/2021
4.6.2 8,151 3/19/2021
4.6.1 7,803 3/19/2021
4.6.0 9,234 3/18/2021
4.5.0 86,250 2/14/2021
4.4.0 30,165 12/16/2020
4.3.0 216,992 11/21/2020
4.2.0 7,628 11/12/2020
4.1.0 8,759 11/6/2020
4.0.6 11,684 10/18/2020
4.0.5 6,766 10/18/2020
4.0.4 6,997 10/17/2020
4.0.3 7,059 10/14/2020
4.0.2 9,371 10/11/2020
4.0.1 8,264 10/6/2020
4.0.0 15,916 10/2/2020
4.0.0-pre9.10 676 10/1/2020
4.0.0-pre9.9 551 9/30/2020
4.0.0-pre9.8 537 9/29/2020
4.0.0-pre9.7 1,017 9/20/2020
4.0.0-pre9.6 651 9/14/2020
4.0.0-pre9.5 565 9/14/2020
4.0.0-pre9.4 994 8/30/2020

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&lt;T&gt;` 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.