参照代码样例: // This function takes in a vertex, color, index and type array // And does the initialization for an object. // The partner function below it draws the object void initobject(GLuint object, GLfloat * vert, GLint sizevert, GLfloat * col, GLin…