Major refactor, too much else to list, check the git changes.
This commit is contained in:
@@ -26,6 +26,9 @@ static const int ante_lut[MAX_ANTE + 1] = {100, 300, 800, 2000, 5000, 11000, 200
|
||||
#define BLIND_SHADOW_COLOR_INDEX 2
|
||||
#define BLIND_HIGHLIGHT_COLOR_INDEX 3
|
||||
#define BLIND_MAIN_COLOR_INDEX 4
|
||||
#define BLIND_BACKGROUND_MAIN_COLOR_INDEX 5
|
||||
#define BLIND_BACKGROUND_SECONDARY_COLOR_INDEX 6
|
||||
#define BLIND_BACKGROUND_SHADOW_COLOR_INDEX 7
|
||||
|
||||
enum BlindState
|
||||
{
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#define TTE_CBB 0
|
||||
#define AFFINE_BG_SBB 2
|
||||
#define AFFINE_BG_CBB 2
|
||||
#define PAL_ROW_LEN 16
|
||||
|
||||
/* Dimensions for a screenblock.
|
||||
* A 1024 size screenblock is arranged in a grid of 32x32 screen entries
|
||||
@@ -45,6 +46,12 @@ typedef struct
|
||||
|
||||
#define UNDEFINED -1
|
||||
|
||||
/* Gets the screenblock tile for the given coordinates (x, y).
|
||||
* x and y are in number of tiles.
|
||||
* Returns the screenblock tile.
|
||||
*/
|
||||
u16 main_bg_se_get_tile(int x, int y);
|
||||
|
||||
/* Clears a rect in the main background.
|
||||
* The se_rect dimensions need to be in number of tiles.
|
||||
*/
|
||||
@@ -56,6 +63,18 @@ void main_bg_se_clear_rect(Rect se_rect);
|
||||
*/
|
||||
void main_bg_se_copy_rect_1_tile_vert(Rect se_rect, int direction);
|
||||
|
||||
/* Copies a rect in the main background from se_rect to the position (x, y).
|
||||
* se_rect dimensions are in number of tiles.
|
||||
* x and y are the coordinates in number of tiles.
|
||||
*/
|
||||
void main_bg_se_copy_rect(Rect se_rect, int x, int y);
|
||||
|
||||
/* Copies a tile to a rect in the main background.
|
||||
* se_rect dimensions are in number of tiles.
|
||||
* The tile is copied to the top left corner of the rect.
|
||||
*/
|
||||
void main_bg_se_copy_tile_to_rect(u16 tile, Rect se_rect);
|
||||
|
||||
// A wrapper for tte_erase_rect that would use the rect struct
|
||||
void tte_erase_rect_wrapper(Rect rect);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user