我发现 OpenGL ES 1.1 可以双向工作。这是四边形的示例:
GLfloat verts[] = {
0, height, // left bottom
width, height, // right bottom
0, 0, // left top
width, 0 // right top
};
其他方向:
GLfloat verts[] = {
0, height,
0, 0,
width, height,
width, 0
};
用glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
有人说你应该按逆时针顺序创建顶点。为什么?