magma_winit 0.1.0-alpha.9

Part of the Magma-API, which is the API of the Magma3D game engine. A winit windowing and input backend implementation.
Documentation

magma_winit

This crate provides backends for magma_windowing as well as magma_input.

Features

  • windowing backend
  • input backend

Usage

This crate should be used together with the rest of the magma_api.

Add this to your Cargo.toml:

[dependencies]
magma_winit = "0.1.0-alpha.9"

Example (with magma_api)

use magma_api::App;
use magma_api::magma_winit::WinitModule;

fn main() {
    let mut app = App::new();
    // Add the module (also adds InputModule and WindowingModule automatically)
    app.add_module(WinitModule);
    // run the app
    app.run();
}

Cargo Features

currently no features

Disclaimer

This crate is not production ready.