In immediate mode, you have to provide the shared vertex 3 times, once for each face as shown in the code. glBegin(GL_QUADS); // draw a cube with 6 quads ...
確定! 回上一頁