Added a function to attribute buffer to return the offsets to beginning of each section of the data in the buffer to allow for opengl attrib function calls