3个版本

0.0.2 2021年2月2日
0.0.1 2020年6月15日
0.0.0 2020年6月14日

#520 in 图形API

Zlib 许可证

75KB
1.5K SLoC

ramen

为实时图形应用,特别是视频游戏提供低级窗口和视频初始化。

基本示例

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:

一个整洁的窗口库。

依赖项

~0–305KB