2016-03-10 23:00:26 +00:00
|
|
|
#ifndef DEF_MAIN_H
|
|
|
|
|
|
|
|
#define DEF_MAIN_H
|
|
|
|
|
|
|
|
/* [LIB] Internes
|
|
|
|
=========================================================*/
|
|
|
|
#include <iostream>
|
|
|
|
#include <ctime>
|
2016-03-11 00:12:03 +00:00
|
|
|
#include <thread>
|
2016-03-10 23:00:26 +00:00
|
|
|
|
|
|
|
/* [LIB] Externes
|
|
|
|
=========================================================*/
|
|
|
|
#include "sdltl.h" // gestion de la fenetre et SDL
|
|
|
|
#include "Sprite.h" // gestion des sprites
|
|
|
|
|
|
|
|
/* [NS] Namespace
|
|
|
|
=========================================================*/
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
/* [CONST] Constantes et enumerations
|
|
|
|
=========================================================*/
|
|
|
|
#define WIN_WIDTH 600
|
|
|
|
#define WIN_HEIGHT 400
|
|
|
|
|
|
|
|
#define FPS 60
|
|
|
|
|
|
|
|
/* [FONCTIONS] Fonctions du corps
|
|
|
|
=========================================================*/
|
|
|
|
void quitEventHandler(SDL_Event *e);
|
|
|
|
|
|
|
|
#endif
|