I am reading several books about OpenGL and in two of them they always define the vertices counter clockwise. From what I read this is very crucial because it determines where the front and back is.
But I am also reading the tutorial on http://www.arcsynthesis.org/gltut/ And he defines 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,
};
Shouldn't I always use the counter clockwise notation, because that is the default in opengl?
Also why is the type a float
? Shouldn't it be a GLfloat
?