This repository has been archived on 2022-05-19. You can view files and clone it, but cannot push or open issues or pull requests.
DemoGL4D/window.c

28 lines
547 B
C
Raw Normal View History

2022-05-12 13:48:40 +02:00
#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);
}