3 unstable releases
0.1.1 | Nov 12, 2022 |
---|---|
0.1.0 | Nov 12, 2022 |
0.0.0 | Nov 7, 2022 |
#1740 in Game dev
44KB
942 lines
bevy_glfw
GLFW window backend for Bevy
Usage
Cargo.toml
bevy = {
version = "...",
default-features = false, // <- Important
features = [
// Only required features!
// Notably *not*:
// - "bevy_winit"
// - "x11" (also enables winit)
// - "wayland" (also enables winit)
]
}
main.rs
use bevy::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugin(bevy_glfw::GlfwPlugin) // <- Add the plugin as usual
.run();
}
Motivation
Introducing a proper stop-gap solution until winit#1806 is completed and released.
Bevy Version Support
bevy | bevy_glfw |
---|---|
0.8 | 0.1 |
Credit
- Red Artist for the base code.
License
bevy_glfw
is free, open source and permissively licensed!
Except where noted (below and/or in individual files), all code in this repository is dual-licensed under either:
- 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. This means you can select the license you prefer! This dual-licensing approach is the de-facto standard in the Rust ecosystem and there are very good reasons to include both.
Your contributions
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Dependencies
~20–37MB
~620K SLoC