2016-03-12 23:22:28 +00:00
|
|
|
#ifndef DEF_XSDL_H
|
|
|
|
|
|
|
|
#define DEF_XSDL_H
|
|
|
|
|
|
|
|
/* [LIBS] Internes
|
|
|
|
=========================================================*/
|
|
|
|
#include "SDL.h"
|
|
|
|
#include "SDL_image.h"
|
|
|
|
#include <vector>
|
|
|
|
#include <mutex>
|
|
|
|
#include <thread>
|
2016-03-14 12:14:35 +00:00
|
|
|
#include <cmath>
|
2016-03-12 23:22:28 +00:00
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
/* [DEF] Definitions basiques
|
|
|
|
=========================================================*/
|
|
|
|
#define SPRITE_ANIM_ONCE 0x1
|
|
|
|
#define SPRITE_ANIM_INFINITE 0x10
|
|
|
|
#define SPRITE_ANIM_REVERSE 0x100
|
|
|
|
|
|
|
|
/* [NS] Namespace
|
|
|
|
=========================================================*/
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
/* [HEADERS] Inclusion des .h des sous-libs
|
|
|
|
=========================================================*/
|
|
|
|
#include "xSDL/xManager.h"
|
|
|
|
#include "xSDL/xSprite.h"
|
|
|
|
#include "xSDL/xSpriteGroup.h"
|
|
|
|
#include "xSDL/xSpriteAnimation.h"
|
|
|
|
|
|
|
|
#endif
|