tycho_window

    Thin pure-MoonBit GLFW windowing and Vulkan WSI surface helper for Tycho

    vulkan
    glfw
    window
    wsi
    tycho
    Download zip
    Version
    0.1.0
    License
    Apache-2.0
    Last updated
    2 hours ago
    Downloads
    2

    #laplaceliu/tycho_window

    Thin pure-MoonBit windowing and Vulkan WSI surface wrapper over GLFW 3 for the Tycho graphics stack.

    Users call @win.initialize(), @win.create(...), @win.create_surface(...), @win.surface_extensions(), @win.poll(), and @win.destroy(...) without writing C or GLFW FFI declarations.

    Platform

    pub(all) enum Platform {
    Linux
    Windows
    MacOS
    }

    create

    fn create(w : Int, h : Int, title : String) -> UInt64

    destroy

    fn destroy(win : UInt64) -> Unit

    initialize

    fn initialize() -> Int

    platform

    fn platform() -> Platform

    poll

    fn poll() -> Unit

    should_close

    fn should_close(win : UInt64) -> Int

    surface_extensions

    fn surface_extensions() -> FixedArray[String]

    terminate

    fn terminate() -> Unit

    time

    fn time() -> Double

    Source Files