I wanted to make a simple automation game using Rust, I first tried Bevy but didn't like ECS. So I found Macroquad, which looked great, but the ui was messy and I found it hard to use, so I wanted to use egui-macroquad to use egui for ui's which looked much nicer. When I add egui-macroquad version 0.15 to my project, I have no errors, same using egui version 0.22 If I copy the code provided in the README.md of egui-macroquad the code doesn't compile:
--> src\main.rs:12:23
|
12 | .show(egui_ctx, |ui| {
| ---- ^^^^^^^^ expected `egui::Context`, found `Context`
| |
| arguments to this method are incorrect
|
= note: `Context` and `egui::Context` have similar names, but are actually distinct types
note: `Context` is defined in crate `egui`
EDIT: I can use egui_macroquad::egui::Window and it works.
And if I remove the errory part, just keep egui_macroquad::draw()
, I get a BIG linker error:
error LNK2005: CONTEXT already defined in libmacroquad-a3cb7b92d2a1ff40.rlib(macroquad-a3cb7b92d2a1ff40.macroquad.b0373709-cgu.6.rcgu.o)
[...]
I then tried cloning egui-macroquad with updated versions of egui etc: https://github.com/ProfAndreaPollini/egui-macroquad.git
But It didn't compile... What am I supposed to do ?
EDIT: After testing, any version of macroquad below 0.4 works but I wanna use the latest version