Hello Chris,
Thursday, May 02, 2002, 14:36:18, you wrote:
C> well, there are much better ways to do it than this, but if you do:
C> while (expression) {
C> …
C> SDL_BlitSurface(…);
C> SDL_Delay(150);
C> }
C> that would blit the surface then wait 150 milliseconds, so, if you were
C> running a computer that was fast enough to get through the loop in just
C> a few milliseconds, this would give you the same result, but i’m sure
C> others on the list can give you a better one. this is just a very simple
C> way to do it, but it has plenty of flaws.
Thank you, but I cannot stop the application by SDL_Delay() function,
that`s the problem I need the way it will be updating by time
without pausing the program flaw.
C> On Thu, 2002-05-02 at 04:35, Alexander Gayevoy wrote:
C> Hello,
C> Im a newbie to SDL library. C> I need help in SDL timing technics (I know the syntax of C> functions, but don
t know how to use them).
C> I need to create an animated field (say, 400x400 pix, blitting on the video
C> surface) with refreshing at every 150
C> millisecs. How do I have to organize my code? How to create the
C> timer callback function?
C> Can anybody provide a simple example?
C> Thank you in advance!
C> Best regards,
C> Alexander mailto:Editor at echo.ru
C> _______________________________________________
C> SDL mailing list
C> SDL at libsdl.org
C> http://www.libsdl.org/mailman/listinfo/sdl
C> Chris
C> chris at luethy.net
C> chris.luethy.net–
Best regards,
Alexander mailto:Editor at echo.ru