| Crates.io | yakui-macroquad |
| lib.rs | yakui-macroquad |
| version | 0.4.0 |
| created_at | 2023-11-07 23:39:45.757929+00 |
| updated_at | 2024-11-27 21:30:35.636268+00 |
| description | A library integrating yakui with macroquad. |
| homepage | |
| repository | https://github.com/profan/yakui-macroquad |
| max_upload_size | |
| id | 1028552 |
| size | 25,149 |
This is a little macroquad integration for yakui, built ontop of yakui-miniquad.
This version is for macroquad 0.4 and yakui 0.3.
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.
See LICENSE