Rechercher une page de manuel
s3d_mainloop
Langue: en
Version: 269292 (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
s3d_mainloop - set mainloop of programSYNOPSIS
#include <s3d.h>
- int s3d_mainloop(void(*)(void) f);
DESCRIPTION
- Takes a function as argument. It will loop this function until a quit-event is received. You can pass NULL if you have no function to be looped, but its better to sleep some time if you have nothing to do anyway to save cpu-time.
-
void mainloop(void) { usleep(1000); // sleep 1 ms in every cycle } ... s3d_mainloop(mainloop());
AUTHOR
Simon Wunderlich
- Author of s3d
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre