{"id":13734161,"url":"https://github.com/optozorax/egui-macroquad","last_synced_at":"2026-04-02T02:17:40.247Z","repository":{"id":38413650,"uuid":"346756700","full_name":"optozorax/egui-macroquad","owner":"optozorax","description":"egui bindings for macroquad","archived":false,"fork":false,"pushed_at":"2024-07-28T06:44:31.000Z","size":8983,"stargazers_count":92,"open_issues_count":10,"forks_count":76,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-13T16:50:34.864Z","etag":null,"topics":["egui","macroquad","rust","wasm","webassembly"],"latest_commit_sha":null,"homepage":"https://optozorax.github.io/egui-macroquad/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/optozorax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-11T15:56:55.000Z","updated_at":"2024-11-09T09:33:08.000Z","dependencies_parsed_at":"2024-06-21T17:32:59.661Z","dependency_job_id":"81b67995-cc51-4beb-92e1-71039f333dcf","html_url":"https://github.com/optozorax/egui-macroquad","commit_stats":{"total_commits":45,"total_committers":12,"mean_commits":3.75,"dds":"0.37777777777777777","last_synced_commit":"5ff0fb796d289bd47d7da1642b80fbdd91cd76fd"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optozorax%2Fegui-macroquad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optozorax%2Fegui-macroquad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optozorax%2Fegui-macroquad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optozorax%2Fegui-macroquad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/optozorax","download_url":"https://codeload.github.com/optozorax/egui-macroquad/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253045657,"owners_count":21845744,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["egui","macroquad","rust","wasm","webassembly"],"created_at":"2024-08-03T03:00:53.077Z","updated_at":"2025-12-12T15:12:09.522Z","avatar_url":"https://github.com/optozorax.png","language":"Rust","funding_links":[],"categories":["Libraries"],"sub_categories":["Libraries: Integrations"],"readme":"# [egui](https://github.com/emilk/egui) bindings for [macroquad](https://github.com/not-fl3/macroquad)\n\n[![Latest version](https://img.shields.io/crates/v/egui-macroquad.svg)](https://crates.io/crates/egui-macroquad)\n[![Documentation](https://docs.rs/egui-macroquad/badge.svg)](https://docs.rs/egui-macroquad)\n![MIT](https://img.shields.io/badge/license-MIT-blue.svg)\n![Apache](https://img.shields.io/badge/license-Apache-blue.svg)\n\nThis is the easiest way to use egui. Just two functions!\n\n[Web demo.](https://optozorax.github.io/egui-macroquad/)\n\n# Usage\n\nYou need to call `ui` when you need to get information from ui. Then, only after that function you must call `draw` function when you need to draw egui contents. All this functions should be called each frame and once per frame.\n\nHere is the small example on how to use this library: \n```rust \nuse macroquad::prelude::*;\n\n#[macroquad::main(\"egui with macroquad\")]\nasync fn main() {\n    loop {\n        clear_background(WHITE);\n\n        // Process keys, mouse etc.\n\n        egui_macroquad::ui(|egui_ctx| {\n            egui::Window::new(\"egui ❤ macroquad\")\n                .show(egui_ctx, |ui| {\n                    ui.label(\"Test\");\n                });\n        });\n\n        // Draw things before egui\n\n        egui_macroquad::draw();\n        \n        // Draw things after egui\n\n        next_frame().await;\n    }\n}\n```\n\n# Building\n\nBuilding for native and for web works just as in `macroquad`. You can read about it [here](https://github.com/not-fl3/miniquad/#building-examples). Or you could look at building example at [egui-miniquad](https://github.com/not-fl3/egui-miniquad).\n\nBut for wasm you will need to include two more `.js` files, which is plugins for quads, instruction is written [here](https://github.com/optozorax/quad-url).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptozorax%2Fegui-macroquad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foptozorax%2Fegui-macroquad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptozorax%2Fegui-macroquad/lists"}