Displaying sequence of frames in loop on projector
I have written OpenGL code in combination with the SOIL toolbox to load a series of bitmaps onto the GPU and to display them in a loop, one after the other. The speed at which this happens can be controlled more or less using Sleep() in the idle function, but for now it is being displayed at maximum refresh rate by setting the Sleep to 0.001ms.
The next step for my application would be to output this series of bitmaps (in full screen) on a projector with a refresh rate of 60Hz, making sure that with every refresh (i.e. every newly projected screen) of the projector, a new bitmap is imaged. And this in a let's say infinite loop.
What would be the best way to do this? Can I use OpenGL to incorporate some sort of control so that there are no frame-drops/doubles in the projection? Or am I barking up the wrong tree here?
Thanks in advance for any comments,