pistoncore-glfw_window 0.59.0

A GLFW window back-end for the Piston game engine
docs.rs failed to build pistoncore-glfw_window-0.59.0
Please check the build logs and, if you believe this is docs.rs' fault, open an issue.

glfw_window Build Status

A GLFW window back-end for the Piston game engine.

Maintainers: @TyOverby, @bvssvni, @Coeuvre

How to contribute

How to create a window

let mut window: GlfwWindow = WindowSettings::new("GLFW Window", (640, 480))

See the examples for more ways to create a window.

How to set up Gfx

After you have created a window, do the following:

let mut device = gfx::GlDevice::new(|s|
let (w, h) = window.get_size();
let frame = gfx::Frame::new(w as u16, h as u16);