Go to the source code of this file.
Defines | |
#define | PA_DualLoadTiledBg(bg_number, bg_name) |
This will never get easier... Loads a background TiledBg converted with PAGfx, with it's tiles, map, and palette. Only 256 color mode available. On 2 screens as 1... | |
#define | PA_DualLoadSimpleBg(bg_select, bg_tiles, bg_map, bg_size, wraparound, color_mode) |
Simplest way to load a Background on both screens | |
#define | PA_DualLoadRotBg(bg_select, bg_tiles, bg_map, bg_size, wraparound) |
Load a background fit for rotating/scaling ! Warning, you must use PA_SetVideoMode to 1 if you want 1 rotating background (Bg3 only !), or 2 for 2 rotating backgrounds (Bg2 and 3). The background MUST be in 256 colors | |
#define | PA_DualLoadBg(bg_select, bg_tiles, tile_size, bg_map, bg_size, wraparound, color_mode) |
Simplest way to load a Background. Combines PA_InitBg, PA_LoadBgTiles, and PA_LoadBgMap | |
#define | PA_DualLoadPAGfxLargeBg(bg_number, bg_name) |
Completely load and initialise a background with infinite scrolling (usefull if larger or wider than 512 pixels), converted with PAGfx. Background on both screens, as one | |
#define | PA_DualLoadLargeBg(bg_select, bg_tiles, bg_map, color_mode, lx, ly) |
Completely load and initialise a background with infinite scrolling (usefull if larger or wider than 512 pixels), on both screens | |
#define | PA_DualLoadLargeBgEx(bg_select, bg_tiles, tile_size, bg_map, color_mode, lx, ly) |
Completely load and initialise a background with infinite scrolling (usefull if larger or wider than 512 pixels), but here you can put yourself the tile size... | |
Functions | |
void | PA_DualHideBg (u8 bg_select) |
Hide a background on both screens | |
void | PA_DualShowBg (u8 bg_select) |
Show a hidden background, on both screens | |
void | PA_DualResetBg (void) |
Reinitialize de Bg system | |
void | PA_DualDeleteBg (u8 bg_select) |
Delete a complete background (tiles + map + hide it...) | |
void | PA_DualSetBgRot (u8 bg_select, s32 x_scroll, s32 y_scroll, s32 x_rotcentre, s32 y_rotcentre, s16 bg_angle, s32 bg_zoom) |
void | PA_DualBGScrollX (u8 bg_number, s16 x) |
Scroll horizontaly any background, on both screens | |
void | PA_DualBGScrollY (u8 bg_number, s16 y) |
Scroll vertically any background | |
void | PA_DualBGScrollXY (u8 bg_number, s16 x, s16 y) |
Scroll horizontaly and vertically any background | |
void | PA_DualInfLargeScrollX (u8 bg_select, s32 x) |
Scroll a large infinite scrolling background horizontaly. It must have been initialised with PA_LoadLargeBg. | |
void | PA_DualInfLargeScrollY (u8 bg_select, s32 y) |
Scroll a large infinite scrolling background vertically. It must have been initialised with PA_LoadLargeBg. | |
void | PA_DualInfLargeScrollXY (u8 bg_select, s32 x, s32 y) |
Scroll a large infinite scrolling background horizontaly and vertically. It must have been initialised with PA_LoadLargeBg. | |
void | PA_DualLargeScrollX (u8 bg_select, s32 x) |
Scroll a large background horizontaly. It must have been initialised with PA_LoadLargeBg. This function does not wrap around, but is faster than the InfLargeScroll... | |
void | PA_DualLargeScrollY (u8 bg_select, s32 y) |
void | PA_DualLargeScrollXY (u8 bg_select, s32 x, s32 y) |
Scroll a large background horizontaly and vertically. It must have been initialised with PA_LoadLargeBg. This function does not wrap around, but is faster than the InfLargeScroll... | |
void | PA_DualInitParallaxX (s32 bg0, s32 bg1, s32 bg2, s32 bg3) |
Initialise Parallax Scrolling for multiple backgrounds, horizontaly. Chose the speed at which each background will scroll compared to the others. Then use PA_ParallaxScrollX to scroll... | |
void | PA_DualInitParallaxY (s32 bg0, s32 bg1, s32 bg2, s32 bg3) |
Initialise Parallax Scrolling for multiple backgrounds, horizontaly. Chose the speed at which each background will scroll compared to the others. Then use PA_ParallaxScrollX to scroll... | |
void | PA_DualParallaxScrollX (s32 x) |
Scroll the backgrounds | |
void | PA_DualParallaxScrollY (s32 y) |
Scroll the backgrounds | |
void | PA_DualParallaxScrollXY (s32 x, s32 y) |
Scroll the backgrounds | |
void | PA_DualSetBgPrio (u8 bg, u8 prio) |
Change a backgrounds priority | |
void | PA_InitLargeBg (bool screen, u8 bg_select, s32 lx, s32 ly, void *bg_map) |
This file contains all the macros and variables regarding Tile modes (0-2), loading tiles and Bg, etc... on 2 screens !