Alchemy
Loading...
Searching...
No Matches

vram_tab.h

Go to the documentation of this file.
1#ifndef ALCHEMY_VRAM_TAB_H
2#define ALCHEMY_VRAM_TAB_H
3
4/// @file
5/// The sprite VRAM block cache and its owners.
6
7#include "types.h"
8#include "edition.h"
9#include "static_assert.h"
10
17};
18
20
21/// A sprite slot of the VRAM cache: the size of its block and where the block
22/// starts in OBJ VRAM.
24 u16 size; ///< bytes
25 u16 offset; ///< bytes from the start of OBJ VRAM
26};
27
30
32
33#endif
The edition's language, for C to compare (LANGUAGE == LANGUAGE_GERMAN).
STATIC_ASSERT, a compile-time check that emits nothing.
#define STATIC_ASSERT(condition)
C89 permits repeated extern declarations of the same array.
#define offsetof(type, member)
Definition stddef.h:19
A sprite slot of the VRAM cache: the size of its block and where the block starts in OBJ VRAM.
Definition vram_tab.h:23
u16 offset
bytes from the start of OBJ VRAM
Definition vram_tab.h:25
The integer types, TRUE, UNUSED and the fixed-address macros.
unsigned short u16
Definition types.h:13
unsigned char u8
Definition types.h:11
struct VramBlockCacheEntry gVramBlockCache[]
u8 gResourceBlockOwners[VRAM_BLOCK_COUNT]
VramBlockLimits
Definition vram_tab.h:11
@ VRAM_BLOCK_BYTES
Definition vram_tab.h:14
@ VRAM_CACHE_ENTRY_COUNT
Definition vram_tab.h:12
@ VRAM_CACHE_OFFSET_FREE
Definition vram_tab.h:16
@ VRAM_BLOCK_COUNT
Definition vram_tab.h:13
@ VRAM_BLOCK_OWNER_FREE
Definition vram_tab.h:15