Defines | |
#define | PA_LoadRotBg(screen, 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_LoadPAGfxRotBg(screen, bg_select, bg_name, 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. | |
Functions | |
void | PA_SetBgRot (u8 screen, u8 bg_select, s32 x_scroll, s32 y_scroll, s32 x_rotcentre, s32 y_rotcentre, s16 bg_angle, s32 bg_zoom) |
void | PA_SetRotMapTile (u8 screen, u8 bg_select, s16 x, s16 y, u8 tile_number) |
u8 | PA_GetRotMapTile (u8 screen, u8 bg_select, s16 x, s16 y) |
#define PA_LoadPAGfxRotBg | ( | screen, | |||
bg_select, | |||||
bg_name, | |||||
wraparound | ) |
Value:
{\ PA_Load8bitBgPal(screen, (void*)bg_name##_Pal);\ PA_LoadRotBg(screen, bg_select, bg_name##_Tiles, bg_name##_Map, PA_GetPAGfxRotBgSize(bg_name##_Info[1]), wraparound);\ }
screen | Chose de screen (0 or 1) | |
bg_select | Background number to load | |
bg_name | Background name, like bg0 | |
wraparound | If the background wraps around or not. |
#define PA_LoadRotBg | ( | screen, | |||
bg_select, | |||||
bg_tiles, | |||||
bg_map, | |||||
bg_size, | |||||
wraparound | ) |
Value:
{\ PA_DeleteBg(screen, bg_select);\ PA_LoadBgTiles(screen, bg_select, bg_tiles); \ PA_LoadRotBgMap(screen, bg_select, (void*)bg_map, bg_size); \ PA_InitBg(screen, bg_select, bg_size, wraparound, 1);\ PA_SetBgRot(screen, bg_select, 0, 0, 0, 0, 0, 256);\ }
screen | Chose de screen (0 or 1) | |
bg_select | Background number to load | |
bg_tiles | Name of the tiles' info (example: ship_Tiles) | |
bg_map | Name of the map's info (example : ship_Map) | |
bg_size | Background size. Use the following macros : BG_ROT_128X128, or 256X256, 512X512, or 1024X1024 | |
wraparound | If the background wraps around or not. |
u8 PA_GetRotMapTile | ( | u8 | screen, | |
u8 | bg_select, | |||
s16 | x, | |||
s16 | y | |||
) | [inline] |
void PA_SetBgRot | ( | u8 | screen, | |
u8 | bg_select, | |||
s32 | x_scroll, | |||
s32 | y_scroll, | |||
s32 | x_rotcentre, | |||
s32 | y_rotcentre, | |||
s16 | bg_angle, | |||
s32 | bg_zoom | |||
) | [inline] |
void PA_SetRotMapTile | ( | u8 | screen, | |
u8 | bg_select, | |||
s16 | x, | |||
s16 | y, | |||
u8 | tile_number | |||
) | [inline] |