Sample applications that integrate Nuklear.Net with common graphics frameworks using the NuklearDevice render backend model.
Build the native library for your platform before running any example:
./scripts/build-native.sh linux-x64Each backend implements NuklearDevice (or NuklearDevice<TTexture>):
CreateTextureHandleuploads font atlas and widget texturesSetDrawBuffersreceives converted Nuklear vertex/index data fromnk_convertRenderDrawCommanddraws each batch with scissor + texture
Use context.RunFrame(device, prepareInput, buildUi) for the full Nuklear frame lifecycle (input → UI → convert → draw → clear).
| Project | Framework | Device |
|---|---|---|
Nuklear.Net.Examples.SilkNet |
Silk.NET + OpenGL | SilkOpenGlDevice |
Nuklear.Net.Examples.OpenTK |
OpenTK 4 | OpenTkGlDevice |
Nuklear.Net.Examples.MonoGame |
MonoGame DesktopGL | MonoGameNuklearDevice |
dotnet run --project Examples/SilkNet/Nuklear.Net.Examples.SilkNet.csproj
dotnet run --project Examples/OpenTK/Nuklear.Net.Examples.OpenTK.csproj
dotnet run --project Examples/MonoGame/Nuklear.Net.Examples.MonoGame.csproj