Palette

struct Palette

Represent a palette entry (the name “Palette” is not proper here).

Summary
PaletteRepresent a palette entry (the name “Palette” is not proper here).
Variables
dataColor in RGBA_5_5_5_1 format.
PalettesRepresents the full set of palettes.
Variables
pramReinterpret Cast of the pram of the GBA.
Functions
PaletteBuilds the Palettes object.
GetPaletteBGRetrieves the color of a background palette.
GetPaletteOBJRetrieves the color of a sprite palette.

Variables

data

uint16_t data

Color in RGBA_5_5_5_1 format.

Palettes

class Palettes

Represents the full set of palettes.

Summary
Variables
pramReinterpret Cast of the pram of the GBA.
Functions
PaletteBuilds the Palettes object.
GetPaletteBGRetrieves the color of a background palette.
GetPaletteOBJRetrieves the color of a sprite palette.

Variables

pram

Palette* pram

Reinterpret Cast of the pram of the GBA.

Functions

Palette

Palettes(Memory *mem)

Builds the Palettes object.

GetPaletteBG

inline Palette* GetPaletteBG (int section,
int id)

Retrieves the color of a background palette.

Parameters

sectionThe palette id.
idThe color id.

GetPaletteOBJ

inline Palette* GetPaletteOBJ(int section,
int id)

Retrieves the color of a sprite palette.

Parameters

sectionThe palette id.
idThe color id.
struct Palette
Represent a palette entry (the name “Palette” is not proper here).
uint16_t data
Color in RGBA_5_5_5_1 format.
class Palettes
Represents the full set of palettes.
Palette* pram
Reinterpret Cast of the pram of the GBA.
Palettes(Memory *mem)
Builds the Palettes object.
inline Palette* GetPaletteBG (int section,
int id)
Retrieves the color of a background palette.
inline Palette* GetPaletteOBJ(int section,
int id)
Retrieves the color of a sprite palette.
Close