Change include and timing of animations
This commit is contained in:
parent
df3aafd87e
commit
586dafb33f
2 changed files with 7 additions and 4 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
9
window.c
9
window.c
|
@ -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 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Reference in a new issue