Skip to content

simulation-tree/windows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Windows as render destinations

Topics

Resources

Stars

Watchers

Forks

Languages