oldschoolgfxglutinext crates.io

Documentation

Extensions for glutin to initialize & update old school gfx. An alternative to gfxwindowglutin.

```rust use oldschoolgfxglutinext::*;

type ColorFormat = gfx::format::Srgba8; type DepthFormat = gfx::format::DepthStencil;

// Initialize let (windowctx, mut device, mut factory, mut maincolor, mut maindepth) = glutin::ContextBuilder::new() .withgfxcolordepth::() .buildwindowed(windowconfig, &eventloop)? .initgfx::();

// Update, ie after a resize windowctx.updategfx(&mut maincolor, &mut maindepth); ```

Example

cargo run --example triangle

Minimum supported rust compiler

All crates maintained with latest stable rust.