Initialise & update old school gfx with glutin + winit.
```rust type ColorFormat = gfx::format::Srgba8; type DepthFormat = gfx::format::DepthStencil;
let eventloop = winit::eventloop::EventLoop::new(); let window_builder = winit::window::WindowBuilder::new();
// Initialise winit window, glutin context & gfx views
let oldschoolgfxglutinext::Init {
// winit window
window,
// glutin bits
glconfig,
glsurface,
glcontext,
// gfx bits
mut device,
mut factory,
mut colorview,
mut depthview,
..
} = oldschoolgfxglutinext::windowbuilder(&eventloop, windowbuilder)
.build::
// Update gfx views, e.g. after a window resize oldschoolgfxglutinext::resizeviews(newsize, &mut colorview, &mut depthview); ```
cargo run --example triangle
All crates maintained with latest stable rust.