PA_16c.h File Reference

16color pseudo-bitmap mode. More...

Go to the source code of this file.

Defines

#define PA_LoadPal16c(palette, source)   DMA_Copy(source, (void*)palette, 16, DMA_16NOW);
#define PA_16cPos(x, y)   (((x>>3)*26*8) + y + 8)

Functions

ALWAYSINLINE void PA_Plot8Pixels (u8 screen, u16 pos, u16 temp, u32 color)
ALWAYSINLINE void PA_16c16X16Letter (u8 screen, s16 x, s16 y, u32 *image, u8 color)
ALWAYSINLINE void PA_16c8X8Letter (u8 screen, s16 x, s16 y, u32 *image, u8 color)
void PA_Init16cBgEx (u8 screen, u8 bg, u8 npalette)
void PA_Init16cBg (u8 screen, u8 bg)
 Initialise 16color background on which you can paste images...
void PA_16cErase (u8 screen)
 Erase the 16color background. Must be used right after PA_WaitForVBL to avoid glitches
void PA_Dual16cErase (void)
 Erase the 16color background on both screens. Must be used right after PA_WaitForVBL to avoid glitches
void PA_InitComplete16c (u8 bg, void *Palette)
 Initialise a 16color background on each screen and give them a given palette
s16 PA_16cText (u8 screen, s16 basex, s16 basey, s16 maxx, s16 maxy, char *text, u8 color, u8 size, s32 limit)
ALWAYSINLINE void PA_16c8X4 (u8 screen, s16 x, s16 y, u32 *image)
 Load an 8x4 pixels image at a given position. Fastest of all pasting functions
ALWAYSINLINE void PA_16c8X6 (u8 screen, s16 x, s16 y, u32 *image)
 Load an 8x6 pixels image at a given position. Second fastest of all pasting functions
ALWAYSINLINE void PA_16c8X8 (u8 screen, s16 x, s16 y, u32 *image)
 Load an 8x8 pixels image at a given position.
ALWAYSINLINE void PA_16c16X8 (u8 screen, s16 x, s16 y, u32 *image)
ALWAYSINLINE void PA_16c16X12 (u8 screen, s16 x, s16 y, u32 *image)
ALWAYSINLINE void PA_16c16X16 (u8 screen, s16 x, s16 y, u32 *image)

Variables

u16 * PA_Draw16 [2]
u32 * PA_Draw1632 [2]
u32 Blank [130000 >>2]


Detailed Description

16color pseudo-bitmap mode.

Special 16color background on which you can paste images. Usefull to show shots in SHMUP !


Generated on Sat Mar 4 12:16:44 2006 for PAlib by  doxygen 1.3.9.1