
Why Egor?
Egor is dead simple, lightweight and cross-platform. The same code runs on desktop, web (WASM) and mobile with minimal boilerplate. It's built from small, composable crates on top of modern graphics and windowing abstractions
Egor gives you the essentials for 2D apps and games:
- Efficient 2D rendering (shapes, textures, text)
- Keyboard & mouse input
- Camera & world-space transforms
- Interactive UIs with optional egui integration
- Optional hot-reload during development
Platform Support
| Target | Backend(s) | Status |
|---|---|---|
| Windows | DX12, Vulkan, OpenGL | ✅ Stable |
| MacOS | Metal, Vulkan (MoltenVK) | ✅ Stable |
| Linux | Vulkan, OpenGL | ✅ Stable |
| Web (WASM) | WebGPU, WebGL2 | ✅ Working |
| Android | Vulkan, OpenGL | ✅ Working |
Getting Started
Add egor to your project:
Example:
let mut position = ZERO;
new
.title
.run
For full documentation see the official docs
Running a Native Build
Simply run cargo:
Running a WASM Build
Setup
Create an index.html next to your Cargo.toml:
Run trunk (defer to Trunk docs for setup):
Running an Android Build
Setup
Make sure your crate is a library:
[]
= ["cdylib", "rlib"]
Have a lib.rs with your egor::main function:
main!;
The egor::main!(main) macro defines the required android_main() entry point on Android and forwards execution to your main() function. On other platforms it expands to nothing (see the secs_particles demo for reference)
Add an Android build target (if needed):
Egor defers Android toolchain setup and build workflow to xbuild. See the xbuild - getting started for SDK/NDK and device setup
Build with xbuild
Try Out Subsecond Hot-reloading
Compile with the hot_reload feature enabled. Hot reload will automatically wrap AppHandler::update when the feature is active
Run dioxus-cli (defer to Dioxus CLI docs for setup):
[!NOTE] Subsecond hot-reloading is experimental; native is working
Performance
To stress test egor, we made ferrismark, a bunnymark like demo capable of rendering hundreds of thousands of Ferris crabs at stable FPS on modest hardware
Demos
To try ferrismark or see more of egor in action, check out demos/
Run any demo with (see --help usage) xtask:
Contributing
egor is moving fast. Before opening a PR or submitting a change, please read CONTRIBUTING.md
Check out some issues, open a new one, drop a PR or come hang in Discord
egor is maintained with ❤️ by Open Source Force