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.
int dg_loop(dg_window_t *window, void *var, sfTime dt);