include/nds/arm9/PA_BgRot.h File Reference

Everything concerning rotscale backgrounds. More...

#include "PA_BgTiles.h"

Defines

#define BG_ROT_128X128   0
#define BG_ROT_256X256   1
#define BG_ROT_512X512   2
#define BG_ROT_1024X1024   3
#define PA_BGXX(screen, bg)   _REG32(0x4000008 + (0x1000 * screen) + (bg << 4))
#define PA_BGXY(screen, bg)   _REG32(0x400000C + (0x1000 * screen) + (bg << 4))
#define PA_BGXPA(screen, bg)   _REG16(0x4000000 + (0x1000 * screen) + (bg << 4))
#define PA_BGXPB(screen, bg)   _REG16(0x4000002 + (0x1000 * screen) + (bg << 4))
#define PA_BGXPC(screen, bg)   _REG16(0x4000004 + (0x1000 * screen) + (bg << 4))
#define PA_BGXPD(screen, bg)   _REG16(0x4000006 + (0x1000 * screen) + (bg << 4))
#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_LoadRotBgMap (u8 screen, u8 bg_select, void *bg_map, u8 bg_size)
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)

Variables

u8 rotbg_size [2][4]


Detailed Description

Everything concerning rotscale backgrounds.

This file contains all the macros and variables regarding Rotation backgrounds


Define Documentation

#define BG_ROT_1024X1024   3

#define BG_ROT_128X128   0

#define BG_ROT_256X256   1

#define BG_ROT_512X512   2

#define PA_BGXPA ( screen,
bg   )     _REG16(0x4000000 + (0x1000 * screen) + (bg << 4))

#define PA_BGXPB ( screen,
bg   )     _REG16(0x4000002 + (0x1000 * screen) + (bg << 4))

#define PA_BGXPC ( screen,
bg   )     _REG16(0x4000004 + (0x1000 * screen) + (bg << 4))

#define PA_BGXPD ( screen,
bg   )     _REG16(0x4000006 + (0x1000 * screen) + (bg << 4))

#define PA_BGXX ( screen,
bg   )     _REG32(0x4000008 + (0x1000 * screen) + (bg << 4))

#define PA_BGXY ( screen,
bg   )     _REG32(0x400000C + (0x1000 * screen) + (bg << 4))


Function Documentation

void PA_LoadRotBgMap ( u8  screen,
u8  bg_select,
void *  bg_map,
u8  bg_size 
)


Variable Documentation

u8 rotbg_size[2][4]


Generated on Sat Jun 13 12:55:13 2009 for PAlib - Programmer's Arsenal by  doxygen 1.5.8