2017-03-30 00:02:15 +00:00
|
|
|
#ifndef GUARD_WINDOW_H
|
|
|
|
#define GUARD_WINDOW_H
|
|
|
|
|
2017-09-01 14:53:06 +00:00
|
|
|
#define WINDOWS_MAX 32
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
WINDOW_PRIORITY,
|
|
|
|
WINDOW_TILEMAP_LEFT,
|
|
|
|
WINDOW_TILEMAP_TOP,
|
|
|
|
WINDOW_WIDTH,
|
|
|
|
WINDOW_HEIGHT,
|
|
|
|
WINDOW_PALETTE_NUM,
|
|
|
|
WINDOW_BASE_BLOCK,
|
|
|
|
WINDOW_TILE_DATA
|
|
|
|
};
|
|
|
|
|
2017-03-30 00:02:15 +00:00
|
|
|
struct WindowTemplate
|
|
|
|
{
|
|
|
|
u8 priority;
|
|
|
|
u8 tilemapLeft;
|
|
|
|
u8 tilemapTop;
|
|
|
|
u8 width;
|
|
|
|
u8 height;
|
|
|
|
u8 paletteNum;
|
|
|
|
u16 baseBlock;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Window
|
|
|
|
{
|
|
|
|
struct WindowTemplate window;
|
|
|
|
u8 *tileData;
|
|
|
|
};
|
|
|
|
|
2017-09-01 14:53:06 +00:00
|
|
|
extern struct Window gWindows[WINDOWS_MAX];
|
|
|
|
|
2017-03-30 00:02:15 +00:00
|
|
|
#endif // GUARD_WINDOW_H
|