diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/malloc.h | 8 | ||||
-rw-r--r-- | include/window.h | 16 |
2 files changed, 24 insertions, 0 deletions
diff --git a/include/malloc.h b/include/malloc.h new file mode 100644 index 000000000..bd870ede3 --- /dev/null +++ b/include/malloc.h @@ -0,0 +1,8 @@ +#ifndef GUARD_MALLOC_H +#define GUARD_MALLOC_H + +void *Alloc(u32 size); +void *AllocZeroed(u32 size); +void Free(void *pointer); + +#endif // GUARD_MALLOC_H diff --git a/include/window.h b/include/window.h index ca0520d41..fb446fecf 100644 --- a/include/window.h +++ b/include/window.h @@ -1,6 +1,20 @@ #ifndef GUARD_WINDOW_H #define GUARD_WINDOW_H +#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 +}; + struct WindowTemplate { u8 priority; @@ -18,4 +32,6 @@ struct Window u8 *tileData; }; +extern struct Window gWindows[WINDOWS_MAX]; + #endif // GUARD_WINDOW_H |