read


// Make glut to call function displayfunc efficiently
glutPostRedisplay();

//Same as glFlush but wait end notification
glFinish()

//Size of the points, default 1.0
glPointSize(GLfloat)

//Line width, default 1.0
glLineWidth(Glfloat)

//Define how each face of the polygon will be drawn
glPolygonMode(GL_FRONT, GL_FILL);
glPolygonMode(GL_BACK, GL_LINE);

//Define face type based on points order (ex: clockwise)
glFrontFace(GL_CW);//CW clock wise
glFrontFace(GL_CCW);//CCW counter clock wise

//Schedule update function with 25 miliseconds
glutTimerFunc(25, update, 0);

Blog Logo

Daniel Gomez Rico


Published

Image

MakinGIANTS

The findings and tips records of an Android-iOS-TheWholeShabang group

Back to Overview