Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 476 Bytes

File metadata and controls

16 lines (14 loc) · 476 Bytes

Windows

Abstraction library for windowing on standalone platforms.

Example

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);
}