#include <GL4D/gl4duw_SDL2.h>
#include "includes/animations.h"
int dimensions[] = {1280, 720};
// Animations
static GL4DHanime animations[] = {
{ 5000, cube, NULL, NULL },
{ 2500, cube, cube2, fondu },
{ 5000, cube2, NULL, NULL },
{ 0, NULL, NULL, NULL }
};
// Comportement à la fermeture du programme
static void fermeture(void);
int main(int argc, char *argv[]) {
if(!gl4duwCreateWindow(argc, argv, "Démo Anri KENNEL", 10, 10, dimensions[0], dimensions[1], GL4DW_SHOWN)) {
return 1;
}
gl4dhInit(animations, dimensions[0], dimensions[1], NULL);
atexit(fermeture);
gl4duwDisplayFunc(gl4dhDraw);
gl4duwMainLoop();
return 0;
void fermeture(void) {
gl4duClean(GL4DU_ALL);