Change include and timing of animations

This commit is contained in:
Mylloon 2022-05-19 12:00:43 +02:00
parent df3aafd87e
commit 586dafb33f
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 7 additions and 4 deletions

View file

@ -3,6 +3,8 @@
#include <GL4D/gl4dh.h> #include <GL4D/gl4dh.h>
#include "audio.h"
// Cube coloré qui tourne sur lui-même // Cube coloré qui tourne sur lui-même
void cube(int); void cube(int);

View file

@ -1,7 +1,8 @@
/* TP8 */
#include <GL4D/gl4duw_SDL2.h> #include <GL4D/gl4duw_SDL2.h>
#include "includes/animations.h" #include "includes/animations.h"
#include "includes/audio.h"
// Son de fond // Son de fond
static Mix_Music * ambiance = NULL; static Mix_Music * ambiance = NULL;
@ -22,9 +23,9 @@ int main(int argc, char *argv[]) {
// Animations // Animations
GL4DHanime animations[] = { GL4DHanime animations[] = {
{ 5000, cube, NULL, NULL }, { 6800, cube, NULL, NULL },
{ 5000, voronoi, NULL, NULL }, { 8500, voronoi, NULL, NULL },
{ 5000, polygone, NULL, NULL }, { 6000, polygone, NULL, NULL },
{ 0, NULL, NULL, NULL } { 0, NULL, NULL, NULL }
}; };