GrAPiC
Graphics for Algo/Prog in C/C++

◆ delay()

void grapic::delay ( int  d)
inline

Stop the program during d milliseconds.

if (isKeyPressed(SDLK_LEFT)) { ... } // if the left arrow is pressed then do ...
if (isKeyPressed(SDLK_a)) { ... } // if the key 'a' is pressed then do ...
if (isKeyPressed('a')) { ... } // if the key 'a' is pressed then do ...
int isKeyPressed(int key)
return the number of time the key 'key' has been pressed since the last call to this function.
Definition: Grapic.h:453