| Crates.io | new-egui-macroquad |
| lib.rs | new-egui-macroquad |
| version | 0.16.0 |
| created_at | 2024-12-10 20:24:19.177852+00 |
| updated_at | 2024-12-10 20:24:19.177852+00 |
| description | Bindings between egui and macroquad |
| homepage | https://github.com/optozorax/new-egui-macroquad |
| repository | https://github.com/optozorax/new-egui-macroquad |
| max_upload_size | |
| id | 1479047 |
| size | 61,267 |
This crate is just a fork of egui-miniquad. For documentation, go there
use macroquad::prelude::*;
#[macroquad::main("egui with macroquad")]
async fn main() {
loop {
clear_background(WHITE);
// Process keys, mouse etc.
egui_macroquad::ui(|egui_ctx| {
egui::Window::new("egui ❤ macroquad")
.show(egui_ctx, |ui| {
ui.label("Test");
});
});
// Draw things before egui
egui_macroquad::draw();
// Draw things after egui
next_frame().await;
}
}