OpenTK 5.0.0-pre.16
Prefix Reserveddotnet add package OpenTK --version 5.0.0-pre.16
NuGet\Install-Package OpenTK -Version 5.0.0-pre.16
<PackageReference Include="OpenTK" Version="5.0.0-pre.16" />
<PackageVersion Include="OpenTK" Version="5.0.0-pre.16" />
<PackageReference Include="OpenTK" />
paket add OpenTK --version 5.0.0-pre.16
#r "nuget: OpenTK, 5.0.0-pre.16"
#:package OpenTK@5.0.0-pre.16
#addin nuget:?package=OpenTK&version=5.0.0-pre.16&prerelease
#tool nuget:?package=OpenTK&version=5.0.0-pre.16&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 (>= 5.0.0-pre.16)
- OpenTK.Compute (>= 5.0.0-pre.16)
- OpenTK.Core (>= 5.0.0-pre.16)
- OpenTK.Graphics (>= 5.0.0-pre.16)
- OpenTK.Mathematics (>= 5.0.0-pre.16)
- OpenTK.Platform (>= 5.0.0-pre.16)
- OpenTK.Windowing.Common (>= 5.0.0-pre.16)
- OpenTK.Windowing.Desktop (>= 5.0.0-pre.16)
- OpenTK.Windowing.GraphicsLibraryFramework (>= 5.0.0-pre.16)
NuGet packages (218)
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. |
|
|
ScottPlot.WPF
User controls for displaying interactive plots in WPF applications |
GitHub repositories (87)
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
|
|
|
xamarin/Xamarin.Forms
Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
|
|
|
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.
|
|
|
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
|
|
|
ArduPilot/MissionPlanner
Mission Planner Ground Control Station for ArduPilot (c# .net)
|
|
|
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.
|
|
|
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
|
|
|
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
|
|
|
AndreiMisiukevich/CardView
CardsView | CarouselView | CoverflowView | CubeView for Xamarin.Forms
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 5.0.0-pre.16 | 92 | 5/17/2026 | |
| 5.0.0-pre.15 | 4,806 | 8/24/2025 | |
| 5.0.0-pre.14 | 1,090 | 7/11/2025 | |
| 5.0.0-pre.13 | 7,972 | 11/11/2024 | |
| 5.0.0-pre.12 | 3,010 | 9/25/2024 | |
| 5.0.0-pre.11 | 1,932 | 8/9/2024 | |
| 5.0.0-pre.10 | 6,776 | 3/7/2024 | |
| 5.0.0-pre.9 | 4,049 | 10/16/2023 | |
| 5.0.0-pre.8 | 17,832 | 10/28/2022 | |
| 4.9.4 | 1,041,775 | 3/17/2025 | |
| 4.9.3 | 58,086 | 12/10/2024 | |
| 4.9.2 | 15,565 | 12/10/2024 | |
| 4.9.1 | 19,189 | 12/2/2024 | |
| 4.8.2 | 310,016 | 12/2/2023 | |
| 4.8.1 | 38,754 | 9/27/2023 | |
| 4.8.0 | 69,057 | 7/17/2023 | |
| 4.7.7 | 90,441 | 2/23/2023 | |
| 4.7.6 | 23,922 | 2/22/2023 | |
| 3.3.3 | 187,422 | 9/10/2022 |
Update to .NET 10. (@NogginBops)
Migrate to `slnx` solution. (@NogginBops)
Remove paket from the build system and use `dotnet pack` instead. (@NogginBops)
Update descriptions and READMEs of packages to be consistent. (@NogginBops)
Removed `OpenTK.Input` package and namespace. (@NogginBops)
Enable source link for OpenTK packages. (@NogginBops)
Unified the OpenAL and OpenGL bindings generator code and simplified it significantly. (@NogginBops)
Make `VectorN.ComponentMin` and `VectorN.ComponentMax` properly NaN propagating. (@NogginBops)
Add `VectorN.ComponentMinNumber`, `VectorN.ComponentMinNative`, `VectorN.ComponentMaxNumber`, and `VectorN.ComponentMaxNative`. (@NogginBops)
Reworked `Box2/i/d` and `Box3/i/d` structs significantly. (@NogginBops)
Made `Min` and `Max` raw fields.
Changed `BoxN.Contains` to actually test if the box is completely contained. For the old behavior use `BoxN.IntersectsWith` or `BoxN.Touches`.
Add `BoxN.Empty` to represent empty boxes for use in bounding box calculations.
Add `BoxN.Zero` to represent point at (0, 0).
Add `BoxN.IsEmpty`, `BoxN.IsPoint`, and `BoxN.HasZeroArea`, `Box2.Area`, and `Box3.Volume` properties.
Removed `BoxN.Top`, `BoxN.Right`, `BoxN.Bottom`, `BoxN.Left`, `BoxN.X`, `BoxN.Y`, `BoxN.SizeX`, `BoxN.SizeY`, `BoxN.CenteredSize`, `BoxN.IsZero` properties.
Removed setters for `BoxN.Width`, `BoxN.Height`, `BoxN.Size`, `BoxN.Location` properties.
Added `BoxN.DistanceToNearestPointInBox`, `BoxN.DistanceToNearestEdge`, `BoxN.SignedDistanceToNearestEdge`, `BoxN.NearestPointInBox`, and `BoxN.NearestPointOnEdge`.
Added `BoxNi.EuclidianDistanceToNearestPointInBox`, `BoxNi.EuclidianDistanceToNearestEdge`, `BoxNi.ManhattanDistanceToNearestEdge`, `BoxNi.SignedEuclidianDistanceToNearestEdge`, and `BoxNi.SignedManhattanDistanceToNearestEdge`.
Changed `BoxN.Round`, `BoxN.Floor`, and `BoxN.Ceiling` to return `BoxN` instead of `BoxNi`.
Added `BoxN.FloorCeiling` that floors min point and ceilings the max point.
OpenAL bindings changes**:
Add documentation to ALC and AL enums. (@NogginBops)
Add OpenAL specification and extension specificiation links to OpenAL function documentation. (@NogginBops)
Fix typo `AL.DopperFactor` -> `AL.DopplerFactor`. (@NogginBops)
Capitalization of "1D", "2D", and "3D" is now correct. (@NogginBops)
Add version info to enum members. (@NogginBops)
Add back `ALC.GetContextAttributes` and `ALC.GetStringList` (@NogginBops)
Change `AL.SourceQueueBuffers` and `AL.SourceUnqueueBuffers` to take `int` instead of `uint`. (@NogginBops)
Fixed capitalization of many acronyms in the OpenAL bindings. (@NogginBops)
Document original enum name in inline enum documentation. (@NogginBops)
Vulkan bindings changes**:
Updates vulkan bindings to 1.4.352. (@NogginBops)
Capitalization of "1D", "2D", and "3D" is now correct. (@NogginBops)
Fix underlying type for dispatchable handles on 32-bit platforms. (@NogginBops)
Added inline documentation annotations for optional and extern sync parameters. (@NogginBops)
Fix 64-bit enums with values larger than `int.MaxValue` having the wrong values. (@NogginBops)
Properly XML escape documentation comments for struct members. (@NogginBops)
OpenGL bindings changes**:
Capitalization of "1D", "2D", and "3D" is now correct. (@NogginBops)
Fix inline documentation now working correctly being included in the nuget package. (@NogginBops)
Fix extension documentation links sometimes being broken. (@NogginBops)
Remove GLES2 functions from OpenGL namespace that had snuck in and vice versa. (@NogginBops)
Make `GL.ObjectLabel` and `GL.ObjectPtrLabel` take an `int` parameter instead of `uint` for the OpenGL object. (@NogginBops)
Make `GL.ObjectPtrLabel` correctly take a `GLSync` parameter. (@NogginBops)
Add `GL.GetShaderInfoLog` and `GL.GetProgramInfoLog` overloads returning a `string`. (@NogginBops)
Capitalization of "1D" is now correct. (@NogginBops)
Add `ClipOrigin` and `ClipDepthMode` to the `GetPName` enum. (@NogginBops)
Removed extension functions marked for compatibility profile from `OpenTK.Graphics.OpenGL`. (@NogginBops)
Updated to latest OpenGL 4 documentation. Notably `GL.DrawElements` now correctly documents `indices` as being an offset and not a pointer to the index data itself. (@NogginBops)
Add version info to enum members. (@NogginBops)
Document original enum name in inline enum documentation. (@NogginBops)
PAL2 changes**:
Added `Toolkit.Window.GetOpenGLContext` to get OpenGL context from a window handle if one has been created. (@NogginBops)
Added `Toolkit.OpenGL.GetWindow` to get the window that was used to create a OpenGL context. (@NogginBops)
Rework `Toolkit.Joystick` to handle arbitrary number of buttons and axes. (@NogginBops)
`Toolkit.Joystick` is only implemented in the Win32 and SDL backends so far.
Add `Toolkit.Gamepad` for xbox style gamepad support. (@NogginBops)
`Toolkit.Gamepad` only works *partially* in the Win32 backend so far.
Changed `Toolkit.Keyboard.GetActiveKeyboardLayout` to `Toolkit.Keyboard.GetActiveInputLanguage`. (@NogginBops)
Changed `Toolkit.Keyboard.GetAvailableKeyboardLayouts` to `Toolkit.Keyboard.GetInstalledInputLanguages`. (@NogginBops)
Add `DisplayValuesChangedEvent` which is sent when various properties of displays change. (@NogginBops)
Add `ClientPosition` property to `MouseButtonDownEventArgs` and `MouseButtonUpEventArgs`. (@NogginBops)
Add `Clicks` property to `MouseButtonDownEventArgs` and `MouseButtonUpEventArgs` for detecting double-clicks. (@NogginBops)
Replaced `EventQueue` with `Toolkit.Event` and remove some unused apis from `EventQueue`. (@NogginBops)
win32:
Fix issue where non-integer refresh rates would cause `ExclusiveFullscreen` to fail. (@NogginBops)
Partial fix to high polling rate mice having large impact on framerate. (@JoeTwizzle, @NogginBops)
Added `ToolkitOptions.Windows.MaxWindowMessagesPerFrame` to limit the number of events processed in a frame, can help with high polling rate mice performance. (@JoeTwizzle, @NogginBops)
Fix bug where changing the window border mode would give the window focus. (@NogginBops)
macOS:
Fix issue with missing entry point `objc_msgSend_stret` on apple silicon. (@NogginBops)
x11:
Read `Xft.dpi` setting for `Toolkit.Display.GetDisplayScale` and `Toolkit.Window.GetContentScale`. (@NogginBops)
Made `Toolkit.Shell.AllowScreenSaver(false, ...)` a little more likely to work. (@NogginBops)
Use freedesktop UPower dbus service, if available, for more reliable battery information. (@NogginBops)
Use gsettings, if available, to get more accurate keyboard layout information. (@NogginBops)