-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmapMaker.h
29 lines (22 loc) · 853 Bytes
/
mapMaker.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef MAPMAKER_H_INCLUDED
#define MAPMAKER_H_INCLUDED
#include "warperInterface.h"
#include "warper.h"
typedef struct _warperFilter
{
SDL_Color filterColor;
} warperFilter;
typedef struct _warperMultiProperties
{
SDL_Rect tileRect;
int colToRepeat;
int rowToRepeat;
} warperMultiProperties;
bool createNewMap(warperTilemap* tilemap, int tileSize);
warperFilter initWarperFilter(int r, int g, int b, int a);
void drawWarperFilter(void* subclass, cCamera camera);
void destroyWarperFilter(void* subclass);
#define WARPER_MULTI_PROPS { (warperMultiProperties) {.tileRect = (SDL_Rect) {2, 0, 4, 5}, .colToRepeat = -1, .rowToRepeat = 2}, \
(warperMultiProperties) {.tileRect = (SDL_Rect) {2, 5, 6, 6}, .colToRepeat = 2, .rowToRepeat = 2} };
#define WARPER_MULTI_PROPS_LEN 2
#endif // MAPMAKER_H_INCLUDED