我有8个顶点。我想用这个顶点绘制立方体。如何绘制带顶点的立方体?
顶点:
v1, v2, v3,v4, v5,v6,v7,v8
they are array of float with 3 elements(float v1[3])
我已经做好了
glBegin(GL_QUADS);
glVertex3f(v1[0], v1 [1], v1[2]);
// do same thing for other 7 vertex
glEnd();