Usage
Add bevy
and bevy_pixels
to Cargo.toml
. Be sure to disable bevy
's render
and bevy_wgpu
features (with default-features = false
) as they will conflict with rendering provided by bevy_pixels
.
[]
= { = "0.10", = false }
= "0.9"
Add PixelsPlugin
to your Bevy project.
use *;
use *;
Use PixelsWrapper
in your systems.
Bevy and Pixels version mapping
bevy_pixels | bevy | pixels |
---|---|---|
0.1 | 0.5 | 0.3 |
0.2 | 0.5 | 0.8 |
0.3-0.4 | 0.6 | 0.9 |
0.5 | 0.7 | 0.9 |
0.6 | 0.8 | 0.10 |
0.7 | 0.9 | 0.10 |
0.8 | 0.9 | 0.11 |
0.9 | 0.10 | 0.12 |
Examples
minimal
This example is based off minimal-winit
example from the pixels project.
Running examples natively
Running examples in web browser
Install dependencies.
Build and serve example with just. See Justfile
for more details.
Open http://localhost:8080/ in your web browser to run the example.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT License (LICENSE-MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.