1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// Written by Leonardo Mariscal <leo@cav.bz>, 2018
/// Information related to glfw and window.
pub struct Window {
pub width: i32,
pub height: i32,
}
impl Window {
/// Creates new window creating an opengl context and loading opengl functions.
pub fn new(width: i32, height: i32) -> Window {
Window {
width: width,
height: height,
}
}
}