ombre 0.6.7

Shadowy game and graphics library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::platform::*;

/// Default UI scale.
pub const DEFAULT_SCALE: f32 = 2.;
/// Default target frames per second.
pub const DEFAULT_TARGET_FPS: f64 = 60.;

/// Renderer interface for runtime.
pub trait RuntimeRenderer {
    type Error: std::error::Error + 'static;

    /// Called on every frame.
    fn frame(&mut self) -> Result<(), Self::Error>;
    /// Called when the window size changes.
    fn window_resized(&mut self, size: LogicalSize);
}