yocto/yocto_gl.cpp
void bind_vertex_buffer(const gl_vertex_buffer& buf, uint vattr) {
    glEnableVertexAttribArray(vattr);
    glBindBuffer(GL_ARRAY_BUFFER, buf._bid);
    glVertexAttribPointer(vattr, buf._ncomp, GL_FLOAT, false, 0, 0);
    glBindBuffer(GL_ARRAY_BUFFER, 0);
  }
// Bind the buffer at a particular attribute location
Bind the buffer at a particular attribute location
Bind the buffer at a particular attribute location
void bind_vertex_buffer(const gl_vertex_buffer& buf, uint vattr) {
    glEnableVertexAttribArray(vattr);
    glBindBuffer(GL_ARRAY_BUFFER, buf._bid);
    glVertexAttribPointer(vattr, buf._ncomp, GL_FLOAT, false, 0, 0);
    glBindBuffer(GL_ARRAY_BUFFER, 0);
  }
void bind_vertex_buffer ( const gl_vertex_buffer & buf , uint vattr ) { glEnableVertexAttribArray ( vattr ) ; glBindBuffer ( GL_ARRAY_BUFFER , buf . _bid ) ; glVertexAttribPointer ( vattr , buf . _ncomp , GL_FLOAT , false , 0 , 0 ) ; glBindBuffer ( GL_ARRAY_BUFFER , 0 ) ; }
Bind the buffer at a particular attribute location
Bind the buffer at a particular attribute location