pub fn new() -> Self {
        let mut vao: gl::types::GLuint = 0;
        unsafe {
            gl::GenVertexArrays(1, &mut vao);
        }

        Self { vao }
    }
/// Generates a new vertex array.
Generates a new vertex array.
Generates a new vertex array .
pub fn new() -> Self {
        let mut vao: gl::types::GLuint = 0;
        unsafe {
            gl::GenVertexArrays(1, &mut vao);
        }
        Self { vao }
    }
pub fn new ( ) -> Self { let mut vao : gl :: types :: GLuint = 0 ; unsafe { gl :: GenVertexArrays ( 1 , & mut vao ) ; } Self { vao } }
Generates a new vertex array.
Generates a new vertex array .