gfxwindowglutin

Glutin window backend for gfx-rs

Usage

Make sure you have the following in your Cargo.toml:

toml gfx_core = "0.9" gfx_device_gl = "0.16" gfx_window_glutin = "0.30.0" glutin = "0.20"

Then, initialize gfx as follows:

```rust extern crate gfxcore; extern crate gfxdevicegl; extern crate gfxwindow_glutin; extern crate glutin;

use gfx_core::format::{DepthStencil, Rgba8};

fn main() { let eventsloop = glutin::EventsLoop::new(); let windowbuilder = glutin::WindowBuilder::new().withtitle("Example".toowned()); let context = glutin::ContextBuilder::new(); let (window, device, factory, rtv, stv) = gfxwindowglutin::init::(windowbuilder, context, &eventsloop);

// your code

} ```