mizchi/kagura_platform/services does not have a README file

    FileAccess

    pub(all) struct FileAccess {
    read : (String, String?) -> Bytes?
    write : (String, Bytes) -> Bool
    }

    Host capabilities are installed before application state is constructed. File access and clocks must not require a window, graphics device or audio.

    FrameHost

    pub(all) struct FrameHost {
    request_frame : (() -> Unit) -> (() -> Unit)
    on_exit : (() -> Unit) -> (() -> Unit)
    publish_phases : (Double, Double, Double) -> Unit
    }

    capture_clock

    fn capture_clock() -> (() -> Double)

    capture_frame_host

    fn capture_frame_host() -> FrameHost?

    now_ms

    fn now_ms() -> Double

    on_exit

    fn on_exit(callback : () -> Unit) -> (() -> Unit)

    publish_frame_phases

    fn publish_frame_phases(update_ms : Double, draw_ms : Double, render_ms : Double) -> Unit

    read_file

    fn read_file(path : String, override_env? : String?) -> Bytes?

    request_frame

    fn request_frame(callback : () -> Unit) -> (() -> Unit)

    reset_clock

    fn reset_clock() -> Unit

    reset_file_access

    fn reset_file_access() -> Unit

    reset_frame_host

    fn reset_frame_host() -> Unit

    set_clock

    fn set_clock(provider : () -> Double) -> Unit

    set_file_access

    fn set_file_access(access : FileAccess) -> Unit

    set_frame_host

    fn set_frame_host(host : FrameHost) -> Unit

    write_file

    fn write_file(path : String, bytes : Bytes) -> Bool

    Source Files