selene_raylib

    Native raylib backend for Selene.

    Game Engine
    Download zip
    Author
    Version
    0.32.4
    License
    Apache-2.0
    Last updated
    4 months ago
    Downloads
    1K

    #Milky2018/selene_raylib

    raylib-based native backend for Selene.

    #Install

    moon add Milky2018/selene_raylib

    #Enable This Backend

    In your native wrapper package:

    options(
    overrides: [
    "Milky2018/selene_raylib/platform_window",
    "Milky2018/selene_raylib/platform_input",
    "Milky2018/selene_raylib/platform_render",
    "Milky2018/selene_raylib/platform_audio",
    "Milky2018/selene_raylib/platform_asset_io",
    ],
    )

    #Build And Run

    moon run --target native

    AudioInstance

    type AudioInstance = Int

    capture_frame_png

    fn capture_frame_png() -> Bytes?

    capture_frame_png_to_file

    fn capture_frame_png_to_file(path : String) -> Bool

    draw_gradient_rect

    draw_image

    fn draw_image(command :
    ImageDrawCommand2D
    , image_path : String) -> Unit

    get_asset_bytes

    fn get_asset_bytes(path : String) -> Bytes?

    get_realtime_delta

    fn get_realtime_delta() -> Double

    get_time_scale

    fn get_time_scale() -> Double

    is_finished

    fn is_finished(instance~ : Int) -> Bool

    load_font

    fn load_font(font : String, path : String) -> Unit

    lock_mouse

    fn lock_mouse(locked :
    Ref
    [Bool]) -> Unit

    play_audio

    fn play_audio(audio_path~ : String, volume~ : Double, speed~ : Double, loop_~ : Bool, paused~ : Bool) -> Int

    pop_clip_rect

    fn pop_clip_rect() -> Unit

    preload_audio

    fn preload_audio(path : String) -> Unit

    preload_img

    fn preload_img(path : String) -> Unit

    push_clip_rect

    fn push_clip_rect(rect :
    Rect
    ) -> Unit

    register_key_events

    fn register_key_events(pressed_keys :
    Set
    [
    Code
    ]) -> Unit

    register_mouse_events

    release_image_asset

    fn release_image_asset(handle :
    ImageHandle
    ) -> Unit

    release_material_asset

    fn release_material_asset(handle :
    MaterialHandle
    ) -> Unit

    release_mesh_asset

    fn release_mesh_asset(handle :
    MeshHandle
    ) -> Unit

    render2d_end_pass

    fn render2d_end_pass() -> Unit

    render3d_submit

    request_close

    fn request_close() -> Unit

    reset_clip_stack

    fn reset_clip_stack() -> Unit

    set_embedded_assets

    fn set_embedded_assets(lookup : (String) -> Bytes?) -> Unit

    set_loop

    fn set_loop(instance~ : Int, loop_~ : Bool) -> Unit

    set_paused

    fn set_paused(instance~ : Int, paused~ : Bool) -> Unit

    set_speed

    fn set_speed(instance~ : Int, speed~ : Double) -> Unit

    set_time_scale

    fn set_time_scale(scale : Double) -> Unit

    set_volume

    fn set_volume(instance~ : Int, volume~ : Double) -> Unit

    stop

    fn stop(instance~ : Int) -> Unit

    tick_audio

    fn tick_audio() -> Unit

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io