bevy_glfw

Crates.iobevy_glfw
lib.rsbevy_glfw
version0.1.1
sourcesrc
created_at2022-11-07 23:12:10.235454
updated_at2022-11-12 20:16:00.646119
descriptionGLFW window backend for Bevy
homepage
repositoryhttps://github.com/Friz64/bevy_glfw
max_upload_size
id707538
size126,622
Friz64 (Friz64)

documentation

https://docs.rs/bevy_glfw

README

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.

Commit count: 3

cargo fmt