GBAlatro
A Demake of Balatro for the GBA
Loading...
Searching...
No Matches
affine_background.h
Go to the documentation of this file.
1
6#ifndef AFFINE_BACKGROUND_H
7#define AFFINE_BACKGROUND_H
8
9#include "graphic_utils.h"
10
11#include <tonc.h>
12
17#define AFFINE_BG_IDX 2
18
23#define AFFINE_BG_PAL_LEN 16
24
29#define AFFINE_BG_PB (PAL_ROW_LEN * 15)
30
58
63
67IWRAM_CODE void affine_background_hblank();
68
72IWRAM_CODE void affine_background_update();
73
79void affine_background_set_color(COLOR color);
80
88void affine_background_load_palette(const u16* src);
89
99
100#endif // AFFINE_BACKGROUND_H
void affine_background_set_color(COLOR color)
Update the affine background color.
void affine_background_init()
Initialize resources for affine background rendering.
IWRAM_CODE void affine_background_update()
Per-frame update of the affine background.
AffineBackgroundID
An ID to specify background rendering types.
@ AFFINE_BG_GAME
Display background for game play.
@ AFFINE_BG_NONE
Display background for the initial splash screen.
@ AFFINE_BG_MAIN_MENU
Display background for main menu.
void affine_background_change_background(enum AffineBackgroundID new_bg)
Update the background id.
IWRAM_CODE void affine_background_hblank()
Interrupt routine to update display on HBLANK.
void affine_background_load_palette(const u16 *src)
Set the background palette.
Graphic utility functions.