include/nds/arm9/PA_Fake16bit.h File Reference

Fake 16 bit background functions. More...

#include "PA9.h"

Defines

#define PA_LoadFake16bitBitmap(screen, bitmap)   DMA_Copy(bitmap, (void*)PA_DrawFake16[screen], 256*192, DMA_16NOW)
 Load a 16 bit bitmap into a fake 16 bit background.
#define PA_ClearFake16bitBg(screen)   DMA_Copy(Blank, (void*)PA_DrawFake16[screen], 256*192, DMA_16NOW)
#define PA_PutFake16bitPixel(screen, x, y, color)   PA_DrawFake16[screen][(x) + 256 * (y)] = color
 Plots a pixel into a fake 16 bit background.
#define PA_GetFake16bitPixel(screen, x, y)   PA_DrawFake16[screen][(x) + 256 * (y)]
 Gets the color of a specified pixel of a fake 16 bit background.
#define PA_DrawFake16bitRect(screen, x1, y1, x2, y2, color)
 Draws a rectangle on a fake 16 bit background.
#define PA_Fake16bitLoadBmpEx(screen, bmp, x, y)   PA_LoadBmpToBuffer(PA_DrawFake16[screen], x, y, bmp, 256)
 Load a BMP on a fake 16 bit background... Don't forget to Init the background !
#define PA_Fake16bitLoadBmp(screen, bmp)   PA_Fake16bitLoadBmpEx(screen, bmp, 0, 0)
 Load a BMP on a fake 16 bit background... Don't forget to Init the background !
#define PA_Fake16bitLoadGifXY(screen, gif, x, y)   DecodeGif((const u8*)gif, (u8*)(PA_DrawFake16[screen] + x + (y<<8)), (u16*)0x05000000, 1, 256);
#define PA_Fake16bitLoadGif(screen, gif)   PA_Fake16bitLoadGifXY(screen, gif, 0, 0)
 Load a Gif on a fake 16 bit background... Don't forget to Init the background !
#define PA_Fake16bitLoadJpeg(screen, jpeg)   JPEG_DecompressImage((u8*)jpeg, PA_DrawFake16[screen], 256, 192)
 Load a jpeg on a fake 16 bit background... Don't forget to Init the background !

Functions

void PA_InitFake16bitBg (u8 screen, u8 prio)
 Initialize a fake 16 bit background.
void PA_DrawFake16bitLine (u8 screen, u16 x1, u16 y1, u16 x2, u16 y2, u16 color)
 Draws a line on a fake 16 bit background.

Variables

u16 * PA_DrawFake16 [2]
bool PA_HasFake16bitBg [2]


Detailed Description

Fake 16 bit background functions.

This will allow you to create 16 bit backgrounds that use less memory.


Variable Documentation

u16* PA_DrawFake16[2]


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