MASS4.Guinevere.OpenGL.OpenTK
6.5.0
dotnet add package MASS4.Guinevere.OpenGL.OpenTK --version 6.5.0
NuGet\Install-Package MASS4.Guinevere.OpenGL.OpenTK -Version 6.5.0
<PackageReference Include="MASS4.Guinevere.OpenGL.OpenTK" Version="6.5.0" />
<PackageVersion Include="MASS4.Guinevere.OpenGL.OpenTK" Version="6.5.0" />
<PackageReference Include="MASS4.Guinevere.OpenGL.OpenTK" />
paket add MASS4.Guinevere.OpenGL.OpenTK --version 6.5.0
#r "nuget: MASS4.Guinevere.OpenGL.OpenTK, 6.5.0"
#:package MASS4.Guinevere.OpenGL.OpenTK@6.5.0
#addin nuget:?package=MASS4.Guinevere.OpenGL.OpenTK&version=6.5.0
#tool nuget:?package=MASS4.Guinevere.OpenGL.OpenTK&version=6.5.0
Guinevere.OpenGL.OpenTK
OpenGL API using OpenTK.
Basic Usage
using Guinevere;
namespace Example;
public abstract class Program
{
public static void Main()
{
var gui = new Gui();
using var win = new GuiWindow(gui);
win.RunGui(() =>
{
gui.DrawRect(gui.ScreenRect, Color.Blue);
gui.DrawText("Hello, world!");
});
}
}
Rendering and frame pacing
Skia draws on the GPU into the window's default framebuffer. When a Skia GL context cannot be created, Skia rasterizes on the CPU and the frame is uploaded as a texture; GUINEVERE_RENDERER=raster forces that path. CanvasRenderer.IsGpuAccelerated reports which one runs.
The window renders on demand by default: it waits for input between frames, and win.Pacing.OnDemand = false renders continuously instead. On demand, it renders a few frames after each input event, continuously while a button or key is held, whenever keyed animations, style transitions and timed controls are moving, and at least every Pacing.MaxIdleSeconds (0.5 s). Content that changes without input calls gui.RequestFrame() (safe from any thread) or gui.RequestFrameIn(seconds). GUINEVERE_PACING=on-demand or continuous overrides the setting at run time. RunGui runs its own loop, so GameWindow.UpdateFrequency and RenderFrequency no longer apply.
License
This project is licensed under the MIT License. See the LICENSE file for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- MASS4.Guinevere (>= 6.5.0)
- OpenTK (>= 4.9.4)
- SkiaSharp (>= 4.154.0)
- SkiaSharp.NativeAssets.Linux (>= 4.154.0)
- SkiaSharp.Views.Desktop.Common (>= 4.153.1)
- SkiaSharp.Vulkan.SharpVk (>= 4.153.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 6.5.0 | 0 | 10/31/2026 |
| 6.4.1 | 88 | 10/26/2026 |
| 6.4.0 | 102 | 10/21/2026 |
| 6.3.0 | 110 | 10/15/2026 |
| 6.2.0 | 95 | 10/14/2026 |
| 6.1.0 | 100 | 10/13/2026 |
| 6.0.0 | 101 | 10/10/2026 |
| 5.9.0 | 104 | 10/6/2026 |
| 5.8.0 | 112 | 10/5/2026 |
| 5.7.0 | 126 | 10/3/2026 |
| 5.6.1 | 105 | 10/2/2026 |
| 5.6.0 | 103 | 10/2/2026 |
| 5.4.0 | 110 | 9/30/2026 |
| 5.3.0 | 103 | 9/29/2026 |
| 5.2.0 | 103 | 9/28/2026 |
| 5.1.0 | 107 | 9/27/2026 |
| 5.0.0 | 110 | 9/26/2026 |
| 4.2.0 | 108 | 9/25/2026 |
| 4.1.0 | 110 | 9/23/2026 |
| 4.0.0 | 112 | 9/20/2026 |