#glfw #window #piston

pistoncore-glfw_window

A GLFW window back-end for the Piston game engine

60 breaking releases

0.60.0 Aug 1, 2019
0.59.0 Jul 24, 2019
0.58.0 Jul 8, 2019
0.49.0 Feb 7, 2019
0.0.7 Feb 24, 2015

#7 in #window

Download history 7/week @ 2019-04-18 10/week @ 2019-04-25 62/week @ 2019-05-02 112/week @ 2019-05-09 97/week @ 2019-05-16 131/week @ 2019-05-23 199/week @ 2019-05-30 122/week @ 2019-06-06 134/week @ 2019-06-13 149/week @ 2019-06-20 600/week @ 2019-06-27 451/week @ 2019-07-04 140/week @ 2019-07-11 66/week @ 2019-07-18 27/week @ 2019-07-25

767 downloads per month
Used in 2 crates

MIT license

55KB
447 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

~3MB
~70K SLoC