Skip to content
A GLFW window back-end for the Piston game engine
Rust
Branch: master
Clone or download
Latest commit 96e5bcb Aug 1, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Published 0.52.0 Jun 2, 2019
src Published 0.58.0 Jul 8, 2019
.gitignore Fixed Cargo settings Aug 3, 2014
.travis.yml Fix .travis.yml Oct 15, 2017
Cargo.dot Add dependency graph to README Oct 28, 2014
Cargo.png Add dependency graph to README Oct 28, 2014
Cargo.toml Published 0.60.0 Aug 1, 2019
LICENSE Initial commit Jun 26, 2014
README.md Update readme example May 15, 2016

README.md

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))
    .fullscreen(false)
    .vsync(true)
    .build()
    .unwrap();

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|
    self.window.get_proc_address(s)
);
let (w, h) = window.get_size();
let frame = gfx::Frame::new(w as u16, h as u16);

Troubleshooting

Dependencies

dependencies

You can’t perform that action at this time.