From 586dafb33f0ffa78a5ad64560c1729869259f704 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 19 May 2022 12:00:43 +0200 Subject: [PATCH] Change include and timing of animations --- includes/animations.h | 2 ++ window.c | 9 +++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/includes/animations.h b/includes/animations.h index 7bdf82a..2b6e8cd 100644 --- a/includes/animations.h +++ b/includes/animations.h @@ -3,6 +3,8 @@ #include +#include "audio.h" + // Cube coloré qui tourne sur lui-même void cube(int); diff --git a/window.c b/window.c index e802f12..bb696bb 100644 --- a/window.c +++ b/window.c @@ -1,7 +1,8 @@ +/* TP8 */ + #include #include "includes/animations.h" -#include "includes/audio.h" // Son de fond static Mix_Music * ambiance = NULL; @@ -22,9 +23,9 @@ int main(int argc, char *argv[]) { // Animations GL4DHanime animations[] = { - { 5000, cube, NULL, NULL }, - { 5000, voronoi, NULL, NULL }, - { 5000, polygone, NULL, NULL }, + { 6800, cube, NULL, NULL }, + { 8500, voronoi, NULL, NULL }, + { 6000, polygone, NULL, NULL }, { 0, NULL, NULL, NULL } };