Référence du fichier include/nds/arm9/PA_Fake16bit.h

Fake 16 bit background functions. Plus de détails...

#include "PA9.h"

Macros

#define PA_LoadFake16bitBitmap(screen, bitmap)   DMA_Copy(bitmap, (void*)PA_DrawFake16[screen], 256*192, DMA_16NOW)
 [nothing]
#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
 [nothing]
#define PA_GetFake16bitPixel(screen, x, y)   PA_DrawFake16[screen][(x) + 256 * (y)]
 [nothing]
#define PA_DrawFake16bitRect(screen, x1, y1, x2, y2, color)
 [nothing]
#define PA_Fake16bitLoadBmpEx(screen, bmp, x, y)   PA_LoadBmpToBuffer(PA_DrawFake16[screen], x, y, bmp, 256)
 [nothing]
#define PA_Fake16bitLoadBmp(screen, bmp)   PA_Fake16bitLoadBmpEx(screen, bmp, 0, 0)
 [nothing]
#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)
 [nothing]
#define PA_Fake16bitLoadJpeg(screen, jpeg)   JPEG_DecompressImage((u8*)jpeg, PA_DrawFake16[screen], 256, 192)
 [nothing]

Fonctions

void PA_InitFake16bitBg (u8 screen, u8 prio)
 [nothing]
void PA_DrawFake16bitLine (u8 screen, u16 x1, u16 y1, u16 x2, u16 y2, u16 color)
 [nothing]

Variables

u16 * PA_DrawFake16 [2]
bool PA_HasFake16bitBg [2]


Description détaillée

Fake 16 bit background functions.

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


Documentation des variables

u16* PA_DrawFake16[2]


Généré le Sat Jun 13 12:56:59 2009 pour PAlib - Programmer's Arsenal par  doxygen 1.5.8