pub fn new(primitive_mode: PrimitiveMode, usage: BufferUsage) -> VertexBuffer<T> {
        let vbo = 0; // Not set yet
        let mut vao = 0;

        unsafe { gl::GenVertexArrays(1, &mut vao) };

        VertexBuffer {
            phantom: PhantomData,
            vertex_count: 0,
            allocated: 0,

            primitive_mode, usage,
            vbo, vao,
        }
    }
/// Creates a new vertex buffer without allocating
Creates a new vertex buffer without allocating
Creates a new vertex buffer without allocating
pub fn new(primitive_mode: PrimitiveMode, usage: BufferUsage) -> VertexBuffer<T> {
        let vbo = 0; // Not set yet
        let mut vao = 0;
        unsafe { gl::GenVertexArrays(1, &mut vao) };
        VertexBuffer {
            phantom: PhantomData,
            vertex_count: 0,
            allocated: 0,
            primitive_mode, usage,
            vbo, vao,
        }
    }
pub fn new ( primitive_mode : PrimitiveMode , usage : BufferUsage ) -> VertexBuffer < T > { let vbo = 0 ; // Not set yet let mut vao = 0 ; unsafe { gl :: GenVertexArrays ( 1 , & mut vao ) } ; VertexBuffer { phantom : PhantomData , vertex_count : 0 , allocated : 0 , primitive_mode , usage , vbo , vao , } }
Creates a new vertex buffer without allocating
Creates a new vertex buffer without allocating
primitive_mode
PrimitiveMode
usage
BufferUsage
primitive_mode
PrimitiveMode
usage
BufferUsage