This repository has been archived on 2023-05-27. You can view files and clone it, but cannot push or open issues or pull requests.
api8/main.c

31 lines
651 B
C
Raw Normal View History

2023-03-18 17:51:56 +01:00
#include <GL4D/gl4duw_SDL2.h>
#include <stdio.h>
static void init(void);
static void draw(void);
static void sortie(void);
static GLuint _wW = 1280, _wH = 720;
int main(int argc, char **argv) {
if (!gl4duwCreateWindow(argc, argv, "Demo API8 2023", GL4DW_POS_CENTERED,
GL4DW_POS_CENTERED, _wW, _wH,
GL4DW_OPENGL | GL4DW_SHOWN)) {
fprintf(stderr, "Erreur lors de la création de la fenêtre.\n");
return 1;
}
init();
atexit(sortie);
gl4duwDisplayFunc(draw);
gl4duwMainLoop();
return 0;
}
void init(void) {}
void draw(void) {}
void sortie(void) { gl4duClean(GL4DU_ALL); }