#ui #graphics #gamedev

yakui-macroquad

A library integrating yakui with macroquad

6 releases

new 0.3.0 Apr 29, 2024
0.2.2 Nov 28, 2023
0.1.1 Nov 7, 2023

#447 in GUI

Download history 4/week @ 2024-02-22 3/week @ 2024-02-29 3/week @ 2024-03-07 2/week @ 2024-03-14 12/week @ 2024-03-28 6/week @ 2024-04-04 358/week @ 2024-04-25

370 downloads per month

MIT license

9KB
92 lines

yakui-macroquad

CI Docs Crates.io version

This is a little macroquad integration for yakui, built ontop of yakui-miniquad.

Version

This version is for macroquad 0.4.5 and yakui 0.2.0.

Example

use macroquad::prelude::*;
use yakui_macroquad::*;

#[macroquad::main("yakui-macroquad-example")]
async fn main() {
    
    loop {

        clear_background(WHITE);

        yakui_macroquad::start();

        yakui::center(|| {
            let mut text_box = yakui::widgets::Text::new(32.0, "hello, world!");
            text_box.style.color = yakui::Color::BLACK;
            text_box.show();
        });

        yakui_macroquad::finish();

        yakui_macroquad::draw();

        next_frame().await;

    }
    
}

You can also run the example with cargo run --example hello-world.

License

See LICENSE

Dependencies

~22MB
~309K SLoC