(buffer, location=None, index=False)
Bind a buffer and associate a given location.
Bind a buffer and associate a given location.
Bind a buffer and associate a given location .
def bind(buffer, location=None, index=False):
        """Bind a buffer and associate a given location."""
        gltype = Attribute.get_gltype(index)
        gl.glBindBuffer(gltype, buffer)
        if location >= 0:
            gl.glEnableVertexAttribArray(location)
def bind ( buffer , location = None , index = False ) : gltype = Attribute . get_gltype ( index ) gl . glBindBuffer ( gltype , buffer ) if location >= 0 : gl . glEnableVertexAttribArray ( location )