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.7", = false }
= "0.5"
Add PixelsPlugin
to your Bevy project.
use *;
use *;
Use PixelsResource
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 |
Examples
Hello Bevy Pixels
This example is based off minimal-winit
example from the pixels project.
License
Licensed under either of
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
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.
Todo
- Add more configuration around how rendering is performed.
- Add support for multiple windows.