#58326 - Nacho - Sat Oct 22, 2005 6:27 pm
Hello there! I?m making a simple 3D raster in C (mode 4). I?ve been reading Harbour?s book because I need to learn about timers and found out that in his demo?s main loop he calls the WaitVBlank() function twice: at the beginning and in the end. This has been my game loop so far:
but now I?ve seen Harbour?s code I?m quite confused. What?s the proper scheme to use? Thanks in advance for your help!
--Nacho
Code: |
while(iFlag) { GameMain(&RendCont); WaitVBlank(); FlipPages(); FillScreen(); // Erases the back buffer. } // End while. |
but now I?ve seen Harbour?s code I?m quite confused. What?s the proper scheme to use? Thanks in advance for your help!
--Nacho