I having trouble in sleep or delay operation in openGL. What am i trying to do is draw a square wait or sleep for a second then draw a triangle. How should i accomplish this task?
I tried the sleep function but what happens is that it sleeps first for 1 second then it draw the square and triangle simultaenously.
I am using the visual c++ environment to build openGL.