mizchi/kagura_engine/platform does not have a README file
pub trait PlatformDriver {
fn initialize(Self, options : WindowOptions) -> Unit raise
fn poll_events(Self) -> Unit
fn should_close(Self) -> Bool
fn outside_size(Self) -> OutsideSize
fn capture_input(Self, tick : Int) -> InputSnapshot
fn monitor_info(Self) -> MonitorInfo
fn set_fullscreen(Self, enabled : Bool) -> Unit
fn is_fullscreen(Self) -> Bool
fn set_cursor_mode(Self, mode : CursorMode) -> Unit
fn cursor_mode(Self) -> CursorMode
fn set_device_scale_factor(Self, scale : Double) -> Unit
fn device_scale_factor(Self) -> Double
fn set_vsync_enabled(Self, enabled : Bool) -> Unit
fn is_vsync_enabled(Self) -> Bool
fn close_window(Self) -> Unit
fn request_attention(Self) -> Unit
fn set_mouse_touch_fallback(Self, enabled : Bool) -> Unit
fn mouse_touch_fallback_enabled(Self) -> Bool
fn fullscreen_request_status(Self) -> AsyncRequestStatus
fn cursor_mode_request_status(Self) -> AsyncRequestStatus
}pub struct DesktopGlfwPlatform {
initialized : Bool
poll_count : Int
close_after_polls : Int
native_active : Bool
options : WindowOptions
current_input : InputSnapshot
fullscreen : Bool
cursor_mode : CursorMode
device_scale_factor : Double
vsync_enabled : Bool
close_requested : Bool
attention_requests : Int
mouse_touch_fallback : Bool
fullscreen_request_status : AsyncRequestStatus
cursor_mode_request_status : AsyncRequestStatus
}pub struct DesktopNativeHooks {
try_initialize : (WindowOptions) -> Bool
poll : (Bool) -> Unit
should_close : () -> Bool
outside_size : (Int, Int) -> OutsideSize
capture_input : (Bool, Int) -> InputSnapshot
set_fullscreen : (Bool, Bool) -> Bool
is_fullscreen : (Bool, Bool) -> Bool
set_cursor_mode : (Bool, CursorMode) -> CursorMode
cursor_mode : (Bool, CursorMode) -> CursorMode
set_device_scale_factor : (Bool, Double) -> Double
device_scale_factor : (Bool, Double) -> Double
set_vsync_enabled : (Bool, Bool) -> Bool
is_vsync_enabled : (Bool, Bool) -> Bool
close_window : (Bool) -> Unit
request_attention : (Bool) -> Unit
set_mouse_touch_fallback : (Bool, Bool) -> Unit
mouse_touch_fallback_enabled : (Bool) -> Bool
}pub struct MonitorInfo {
width : Int
height : Int
device_scale_factor : Double
refresh_rate_hz : Int
} derive(Debug)impl Show for MonitorInfopub struct WebCanvasHooks {
try_initialize : (String, WindowOptions) -> Bool
poll : (Bool) -> Unit
should_close : () -> Bool
outside_size : (Int, Int) -> OutsideSize
current_surface : (String, WindowOptions) -> SurfaceToken
capture_input : (Bool, Int) -> InputSnapshot
set_fullscreen : (String, Bool, Bool) -> Bool
is_fullscreen : (String, Bool, Bool) -> Bool
set_cursor_mode : (String, Bool, CursorMode) -> CursorMode
cursor_mode : (String, Bool, CursorMode) -> CursorMode
set_device_scale_factor : (String, Bool, Double) -> Double
device_scale_factor : (String, Bool, Double) -> Double
set_vsync_enabled : (String, Bool, Bool) -> Bool
is_vsync_enabled : (String, Bool, Bool) -> Bool
close_window : (String, Bool) -> Unit
request_attention : (String, Bool) -> Unit
set_mouse_touch_fallback : (String, Bool, Bool) -> Unit
mouse_touch_fallback_enabled : (String, Bool) -> Bool
fullscreen_request_status : (String, Bool, Int) -> Int
cursor_mode_request_status : (String, Bool, Int) -> Int
}pub struct WebCanvasPlatform {
canvas_selector : String
initialized : Bool
poll_count : Int
close_after_polls : Int
web_active : Bool
options : WindowOptions
current_input : InputSnapshot
fullscreen : Bool
cursor_mode : CursorMode
device_scale_factor : Double
vsync_enabled : Bool
close_requested : Bool
attention_requests : Int
mouse_touch_fallback : Bool
fullscreen_request_status : AsyncRequestStatus
cursor_mode_request_status : AsyncRequestStatus
}pub struct WindowOptions {
title : String
width : Int
height : Int
transparent : Bool
resizable : Bool
focused : Bool
} derive(Debug)impl Show for WindowOptionsfn new_desktop_native_hooks(try_initialize : (WindowOptions) -> Bool, poll : (Bool) -> Unit, should_close : () -> Bool, outside_size : (Int, Int) -> OutsideSize, capture_input : (Bool, Int) -> InputSnapshot, set_fullscreen : (Bool, Bool) -> Bool, is_fullscreen : (Bool, Bool) -> Bool, set_cursor_mode : (Bool, CursorMode) -> CursorMode, cursor_mode : (Bool, CursorMode) -> CursorMode, set_device_scale_factor : (Bool, Double) -> Double, device_scale_factor : (Bool, Double) -> Double, set_vsync_enabled : (Bool, Bool) -> Bool, is_vsync_enabled : (Bool, Bool) -> Bool, close_window : (Bool) -> Unit, request_attention : (Bool) -> Unit, set_mouse_touch_fallback : (Bool, Bool) -> Unit, mouse_touch_fallback_enabled : (Bool) -> Bool) -> DesktopNativeHooksfn new_web_canvas_hooks(try_initialize : (String, WindowOptions) -> Bool, poll : (Bool) -> Unit, should_close : () -> Bool, outside_size : (Int, Int) -> OutsideSize, current_surface : (String, WindowOptions) -> SurfaceToken, capture_input : (Bool, Int) -> InputSnapshot, set_fullscreen : (String, Bool, Bool) -> Bool, is_fullscreen : (String, Bool, Bool) -> Bool, set_cursor_mode : (String, Bool, CursorMode) -> CursorMode, cursor_mode : (String, Bool, CursorMode) -> CursorMode, set_device_scale_factor : (String, Bool, Double) -> Double, device_scale_factor : (String, Bool, Double) -> Double, set_vsync_enabled : (String, Bool, Bool) -> Bool, is_vsync_enabled : (String, Bool, Bool) -> Bool, close_window : (String, Bool) -> Unit, request_attention : (String, Bool) -> Unit, set_mouse_touch_fallback : (String, Bool, Bool) -> Unit, mouse_touch_fallback_enabled : (String, Bool) -> Bool, fullscreen_request_status : (String, Bool, Int) -> Int, cursor_mode_request_status : (String, Bool, Int) -> Int) -> WebCanvasHooksfn new_window_options(title : String, width : Int, height : Int, transparent : Bool, resizable : Bool, focused? : Bool) -> WindowOptionsRendering, runtime, platform, asset, audio, and glTF infrastructure for Kagura
Dependencies