3 releases

0.0.2 Feb 2, 2021
0.0.1 Jun 15, 2020
0.0.0 Jun 14, 2020

#636 in Graphics APIs

Zlib license

75KB
1.5K SLoC

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();
}

lib.rs:

A neat windowing library.

Dependencies

~0–305KB