ramen

Crates.ioramen
lib.rsramen
version0.0.2
sourcesrc
created_at2020-06-14 23:37:04.241314
updated_at2021-02-02 18:54:31.867017
descriptionCross-platform windowing crate, built for performance.
homepage
repositoryhttps://github.com/notviri/ramen/
max_upload_size
id254012
size75,732
viri (viriuwu)

documentation

https://docs.rs/ramen

README

ramen

Low-level windowing and video initialization for real-time graphical applications, especially video games.

Basic Example

use ramen::{event::Event, monitor::Size, window::Window};

// Create your window
let mut window = Window::builder()
    .inner_size(Size::Logical(1280.0, 720.0))
    .resizable(false)
    .title("a nice window")
    .build()?;


// Poll events & do your processing
'main: loop {
    for event in window.events() {
        match event {
            Event::Close(_) => break 'main,
            _ => (),
        }
    }

    // Render graphics, process input, et cetera.

    window.swap_events();
}
Commit count: 0

cargo fmt