glfw-sys 8.0.0

An Open Source, multi-platform library for creating windows with OpenGL contexts and receiving input and events
Documentation
1
2
3
4
5
6
7
8
/// Mainly used to test if glfw functions are properly linked.
fn main() {
    let mut major = 0;
    let mut minor = 0;
    let mut patch = 0;
    unsafe { glfw_sys::glfwGetVersion(&mut major, &mut minor, &mut patch) };
    println!("GLFW version {}.{}.{}", major, minor, patch);
}