Sorry for my question but i am new with OpenGl and i don’t understand how glutMainLoop works.
Let’s say i have an init function that look like this :
glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE);
That means glutMainLoop will call show_results,update and idle over and over without stop?
I just did a few Googles on these functions, and that looks correct, as long as your update() function takes width and height as parameters, yes.
What kind of a project are you working on? I’m going for a simple 2D game and/or 2D artist graphics demo, maybe a very simple 3D thing too.
I have a YouTube channel where I’ve posted quite a few beginning tutorials on OpenGL, so here’s my shameless plug below:
Thank you for your help.
Very nice doc.