https://github.com/simulation-tree/windows
Windows as render destinations
https://github.com/simulation-tree/windows
csharp dotnet windowing
Last synced: 5 months ago
JSON representation
Windows as render destinations
- Host: GitHub
- URL: https://github.com/simulation-tree/windows
- Owner: simulation-tree
- Created: 2024-07-05T05:06:52.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-09-22T03:08:05.000Z (9 months ago)
- Last Synced: 2025-09-22T05:28:44.189Z (9 months ago)
- Topics: csharp, dotnet, windowing
- Language: C#
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Windows
Abstraction library for windowing on standalone platforms.
### Example
```cs
using World world = new World();
Window mainWindow = new(world, "The Window", new(100, 100), new(800, 600), "vulkan", new(&WindowCloseRequested));
mainWindow.IsFullscreen = true;
(uint width, uint height, uint refreshRate) display = mainWindow.Display;
[UnmanagedCallersOnly]
static void WindowCloseRequested(World world, uint windowEntity)
{
world.DestroyEntity(windowEntity);
}
```