If I have a cube mesh in OpenGL ES and I want to have a flat color for each side of the cube so that each side has a different color, do I need to specify color per vertex or color per triangle or color per side? This 2 lines of code:
gl.glEnableClientState(GL10.GL_COLOR_ARRAY); gl.glColorPointer(4, GL10.GL_FLOAT, 0, mColorBuffer);
与这个问题有关。
OpenGL ES如何知道我指定的哪种颜色与立方体的哪一侧匹配?