#glfw #window #piston

pistoncore-glfw_window

A GLFW window back-end for the Piston game engine

51 breaking releases

new 0.51.0 May 24, 2019
0.49.0 Feb 7, 2019
0.46.0 Nov 15, 2018
0.43.0 May 27, 2018
0.0.7 Feb 24, 2015

#30 in Game development

Download history 12/week @ 2019-02-08 50/week @ 2019-02-15 60/week @ 2019-02-22 118/week @ 2019-03-01 15/week @ 2019-03-08 13/week @ 2019-03-15 366/week @ 2019-03-22 3/week @ 2019-03-29 56/week @ 2019-04-05 10/week @ 2019-04-12 8/week @ 2019-04-19 9/week @ 2019-04-26 114/week @ 2019-05-03 92/week @ 2019-05-10 121/week @ 2019-05-17

292 downloads per month
Used in 1 crate

MIT license

55KB
434 lines

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


lib.rs:

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

Dependencies

~4MB
~82K SLoC