https://github.com/smokku/bevy_miniquad
Bevy engine + miniquad render plugin
https://github.com/smokku/bevy_miniquad
bevy bevy-miniquad game-engine miniquad opengl rust webgl
Last synced: 10 days ago
JSON representation
Bevy engine + miniquad render plugin
- Host: GitHub
- URL: https://github.com/smokku/bevy_miniquad
- Owner: smokku
- Created: 2020-09-19T14:53:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-04-01T14:27:07.000Z (23 days ago)
- Last Synced: 2025-04-14T07:08:15.801Z (10 days ago)
- Topics: bevy, bevy-miniquad, game-engine, miniquad, opengl, rust, webgl
- Language: Rust
- Homepage: https://smokku.github.io/bevy_miniquad/
- Size: 478 KB
- Stars: 45
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-quads - bevy_miniquad - [bevy](https://github.com/bevyengine/bevy) + miniquad. (Libraries / Libraries: Integrations)
README
# Bevy engine + miniquad renderer
This is a plugin for [Bevy engine][1] that replaces default windowing and rendering plugins
with [miniquad][2] based one.[1]: https://github.com/bevyengine/bevy
[2]: https://github.com/not-fl3/miniquad## Usage
Add to your `Cargo.toml`:
```toml
[dependencies]
bevy = { version = "0.15", default-features = false }
bevy_miniquad = "0.4"
```You need to implement your own `render` function and add it as a resource:
```rust
App::build()
.add_default_plugins()
.add_resource::(Arc::new(Box::new(draw)))
.add_plugin(MiniquadPlugin)
```This plugin exposes `Window` resource with window dimensions and cursor position.
## features
### `log-impl`
This plugin exposes `log` module with API compatible with `log` crate, which
works under every `miniquad` supported platform. See `blobs` example.