min_gl 0.3.0

Minimal boilerplate code for OpenGL applications with glfw and glad.
Documentation
1
2
3
4
5
6
7
8
9
10
use glfw::WindowEvent;
use min_timer::{Now, Sec};

use crate::Display;

impl<T: FnMut(WindowEvent)> Now for Display<T> {
    fn now(&self) -> Sec {
        Sec::from(self.glfw().get_time())
    }
}