I want to make a countdown timer for my racing game such as "3... 2... 1... GO!" I'm using GLUT, OpenGL, and C++. I was wondering what the most appropriate method to handle this in C++. clock()? glutTimerFunc()? I plan on having 4 textured polygons that shrink and fade one after the other.
Tell me more
×
Game Development Stack Exchange is a question and answer site for
professional and independent game developers. It's 100% free, no registration required.
glutGet(GLUT_ELAPSED_TIME);That way you have real frame time correlation with what the user should see on their screen. Some code here. That's probably easier since you don't have to worry about performing really OS specific time calls. – teodron Apr 10 '12 at 17:35