2018-09-22 23:08:53 +00:00
|
|
|
typedef struct sLayer
|
|
|
|
{
|
|
|
|
SDL_Surface* sprite;
|
|
|
|
int x,y,h,v;
|
|
|
|
int oX, oY;
|
|
|
|
} SLayer;
|
|
|
|
|
|
|
|
typedef struct transition
|
|
|
|
{
|
|
|
|
int in;
|
|
|
|
SDL_Color incolor;
|
|
|
|
int out;
|
|
|
|
SDL_Color outcolor;
|
|
|
|
} Transition;
|
|
|
|
|
|
|
|
typedef struct scene
|
|
|
|
{
|
|
|
|
SLayer** sprites;
|
|
|
|
int nSprites;
|
|
|
|
int time;
|
|
|
|
Transition fade;
|
|
|
|
} Scene;
|
|
|
|
|
2018-09-24 18:41:09 +00:00
|
|
|
SLayer* newSLayer(SDL_Surface* img, int x, int y, int h, int v, int alpha);
|
2018-09-22 23:08:53 +00:00
|
|
|
void deleteSLayer(SLayer* target);
|
|
|
|
|
|
|
|
Scene* newScene(int in, int out, int time, SDL_Color incolor, SDL_Color outcolor);
|
|
|
|
void buildScene(Scene* self, SLayer* sprite);
|
|
|
|
void playScene(Scene* self);
|
2018-09-24 20:47:46 +00:00
|
|
|
void sceneInput(Scene* self, int* counter);
|
2018-09-22 23:08:53 +00:00
|
|
|
void deleteScene(Scene* target);
|