I read several books about OpenGL, and in two of them they always define vertices counterclockwise. From what I read, this is very important because it determines where the front and back are.
But I also read the tutorial at http://www.arcsynthesis.org/gltut/ And it identifies them clockwise.
const float vertexPositions[] = { 0.75f, 0.75f, 0.0f, 1.0f, 0.75f, -0.75f, 0.0f, 1.0f, -0.75f, -0.75f, 0.0f, 1.0f, };
Should I always use counterclockwise notation because this is the default value in opengl?
Also why is the type a float ? Shouldn't it be GLfloat ?
source share