#glfw-window #bevy #back-end

bevy_glfw

GLFW window backend for Bevy

3 unstable releases

0.1.1 Nov 12, 2022
0.1.0 Nov 12, 2022
0.0.0 Nov 7, 2022

#1174 in Game dev

MIT/Apache

44KB
942 lines

bevy_glfw

GLFW window backend for Bevy

crates.io docs.rs

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

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:

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

~17–36MB
~578K SLoC