yakui-macroquad

Crates.ioyakui-macroquad
lib.rsyakui-macroquad
version0.3.1
sourcesrc
created_at2023-11-07 23:39:45.757929
updated_at2024-05-13 19:12:28.086102
descriptionA library integrating yakui with macroquad.
homepage
repositoryhttps://github.com/profan/yakui-macroquad
max_upload_size
id1028552
size29,631,865
Robin Hübner (profan)

documentation

README

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

Commit count: 34

cargo fmt