Skip to main content
gamedev.net
🔒 Locked

time questions.....

Started by Sir Mud Oct 27, 2000 at 1:39 PM 1 replies 700+ views
Original Post
Sir Mud
Sir Mud
ok, in my project i''m trying to get the fog to be based on what time it is (e.x morning its denser than it would be at noon ect.) im using Glut and OpenGL, so how can i tell it to read the systems time? (c++)
"head hurt from write"
bbxx
bbxx
look at "time.h"
there is a function called GetTickCount() and it returns a double.
You could use that to see how much time has passed during the game but if you want to know the actual time on the computer then you have to do something else. I can''t remember off the top of my head but i think it''s in time.h also.
Matt Teiken
Sir Mud
Sir Mud
alrighty, that seems easy enough
"head hurt from write"

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.