clock time as the current time ??

hey all … how i can make the time of the opengl clock as the same time of the computer(current time) ???
and how i can change the the indicator color randomly after 1 minute???!!

thank u

any help plz ??

Don’t cross-post on the same problem. << Thread link >>

At least you’re asking a specific question though, versus “please do my homework for me”.

Answer: OpenGL doesn’t have a “clock”, like you’re probably thinking (time-of-day). What makes you think it does? Perhaps give us a little more context what specifically you’re trying to accomplish with this portion of your design.

And before you reply, read (not skim) the tutorials “Your First Polygon” and “Adding Color” here. You’ll know how to answer your second question when you’re done.