U E D R S I H C RSS
ID
Password
Join
참으로 위대한 일은 언제나 서서히 이루어지고, 눈에 보이지 않게 성장해 가는 법이다. 참으로 중요한 일에 종사하고 있는 사람은 모두 그 생활에 있어서 단순하다. 왜냐하면 그들은 쓸데없는 일에 마음을 쓸 겨를이 없기 때문이다. -톨스토이

 *SDL_GetTicks — Get the number of milliseconds since the SDL library initialization.
  • SDL_Delay — Wait a specified number of milliseconds before returning.
  • SDL_AddTimer — Add a timer which will call a callback after the specified number of milliseconds has elapsed.
  • SDL_RemoveTimer — Remove a timer which was added with SDL_AddTimer.
  • SDL_SetTimer — Set a callback to run after the specified number of milliseconds has elapsed.

SDL provides several cross-platform functions for dealing with time. It provides a way to get the current time, a way to wait a little while, and a simple timer mechanism. These functions give you two ways of moving an object every x milliseconds:
  • Use a timer callback function. This may have the bad effect that it runs in a seperate thread or uses alarm signals, but it's easier to implement.
  • Or you can get the number of milliseconds passed, and move the object if, for example, 30 ms passed.

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2010-10-28 12:42:54
Processing time 0.0325 sec