web_runtime_hooks

    Kagura runtime hooks for browser JavaScript and WebAssembly, with native integration

    Download zip
    Author
    Version
    0.6.0
    License
    Apache-2.0
    Last updated
    15 days ago
    Downloads
    9

    mizchi/web_runtime_hooks does not have a README file

    clear_source_image_palettes

    fn clear_source_image_palettes() -> Unit

    install

    fn install(_canvas_selector : String) -> Unit

    is_ready

    fn is_ready() -> Bool

    patch_source_image_rgba8

    fn patch_source_image_rgba8(source_image_id : Int, width : Int, height : Int, dirty_x : Int, dirty_y : Int, dirty_width : Int, dirty_height : Int, rgba8_channels : Array[Int]) -> Bool

    register_source_image_palette

    fn register_source_image_palette(source_image_id : Int, _palette :
    ImagePalette2x2
    ) -> Unit

    register_source_image_rgba8

    fn register_source_image_rgba8(source_image_id : Int, width : Int, height : Int, rgba8_channels : Array[Int]) -> Unit

    register_source_image_solid_color

    fn register_source_image_solid_color(source_image_id : Int, color :
    Rgba
    ) -> Unit

    register_static_geometry

    fn register_static_geometry(_vertices : Array[Double], _indices : Array[Int]) -> Unit

    Optional JS WebGPU optimization; other backends manage their own resources.

    request_animation_frame

    fn request_animation_frame(_f : () -> Unit) -> Unit

    shutdown

    fn shutdown() -> Unit

    source_image_cache_count

    fn source_image_cache_count() -> Int

    source_image_generation

    fn source_image_generation(image_id : Int) -> Int

    source_image_height

    fn source_image_height(image_id : Int) -> Int

    source_image_pixel_channel

    fn source_image_pixel_channel(image_id : Int, x : Int, y : Int, channel_index : Int) -> Int

    source_image_width

    fn source_image_width(image_id : Int) -> Int

    sync_dirty_atlas_pages_from_repository

    fn sync_dirty_atlas_pages_from_repository(repository :
    SimpleAtlasImageRepository
    ) -> Int

    sync_dirty_source_images_from_repository

    fn sync_dirty_source_images_from_repository(repository :
    SimpleImageRepository
    ) -> Int

    sync_source_image_palettes

    fn sync_source_image_palettes(bindings : Array[
    ImagePaletteBinding
    ]) -> Int

    sync_source_image_palettes_from_repository

    fn sync_source_image_palettes_from_repository(repository :
    SimpleImageRepository
    ) -> Int

    sync_source_images

    fn sync_source_images(bindings : Array[
    SourceImageBinding
    ]) -> Int

    sync_source_images_from_repository

    fn sync_source_images_from_repository(repository :
    SimpleImageRepository
    ) -> Int

    uninstall

    fn uninstall() -> Unit

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io