28 lines
547 B
C
28 lines
547 B
C
|
#include <GL4D/gl4dp.h>
|
||
|
#include <GL4D/gl4duw_SDL2.h>
|
||
|
|
||
|
// Dessine dans la fenêtre
|
||
|
static void dessin(void);
|
||
|
|
||
|
// Dimensions initiales de la fenêtre
|
||
|
static int dimensions[] = {1280, 720};
|
||
|
|
||
|
int main(int argc, char *argv[]) {
|
||
|
if(!gl4duwCreateWindow(argc, argv, "Démo Anri KENNEL", 10, 10, dimensions[0], dimensions[1], GL4DW_SHOWN)) {
|
||
|
return 1;
|
||
|
}
|
||
|
|
||
|
gl4dpInitScreen();
|
||
|
gl4duwDisplayFunc(dessin);
|
||
|
gl4duwMainLoop();
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
void dessin(void) {
|
||
|
gl4dpClearScreen();
|
||
|
|
||
|
/* ... */
|
||
|
gl4dpUpdateScreen(NULL);
|
||
|
}
|