Download Tutorial C Files H Files

dg_loop

You have to create this function, otherwise the compilation will crash.
This fonction is called during the loop wich display the window content. Use it to repeat action each time like drawing or modifying variables.

Usage

int dg_loop(dg_window_t *window, void *var, sfTime dt);