sgdk
|
00001 00013 #ifndef _VDP_BG_H_ 00014 #define _VDP_BG_H_ 00015 00016 #include "bmp.h" 00017 #include "vdp.h" 00018 #include "vdp_tile.h" 00019 00020 00033 typedef struct 00034 { 00035 Palette *palette; 00036 TileSet *tileset; 00037 TileMap *tilemap; 00038 } Image; 00039 00040 00047 extern u16 curTileInd; 00048 00069 void VDP_setHorizontalScroll(VDPPlane plane, s16 value); 00101 void VDP_setHorizontalScrollTile(VDPPlane plane, u16 tile, s16* values, u16 len, TransferMethod tm); 00132 void VDP_setHorizontalScrollLine(VDPPlane plane, u16 line, s16* values, u16 len, TransferMethod tm); 00133 00152 void VDP_setVerticalScroll(VDPPlane plane, s16 value); 00182 void VDP_setVerticalScrollTile(VDPPlane plane, u16 tile, s16* values, u16 len, TransferMethod tm); 00183 00198 void VDP_clearPlane(VDPPlane plane, bool wait); 00199 00209 VDPPlane VDP_getTextPlane(); 00217 u16 VDP_getTextPalette(); 00225 u16 VDP_getTextPriority(); 00226 00241 void VDP_setTextPlane(VDPPlane plane); 00252 void VDP_setTextPalette(u16 palette); 00265 void VDP_setTextPriority(u16 prio); 00266 00289 void VDP_drawTextBG(VDPPlane plane, const char *str, u16 x, u16 y); 00311 void VDP_clearTextBG(VDPPlane plane, u16 x, u16 y, u16 w); 00335 void VDP_clearTextAreaBG(VDPPlane plane, u16 x, u16 y, u16 w, u16 h); 00353 void VDP_clearTextLineBG(VDPPlane plane, u16 y); 00354 00371 void VDP_drawText(const char *str, u16 x, u16 y); 00387 void VDP_clearText(u16 x, u16 y, u16 w); 00405 void VDP_clearTextArea(u16 x, u16 y, u16 w, u16 h); 00417 void VDP_clearTextLine(u16 y); 00418 00445 u16 VDP_drawBitmap(VDPPlane plane, const Bitmap *bitmap, u16 x, u16 y); 00476 u16 VDP_drawBitmapEx(VDPPlane plane, const Bitmap *bitmap, u16 basetile, u16 x, u16 y, u16 loadpal); 00477 00502 u16 VDP_drawImage(VDPPlane plane, const Image *image, u16 x, u16 y); 00533 u16 VDP_drawImageEx(VDPPlane plane, const Image *image, u16 basetile, u16 x, u16 y, u16 loadpal, bool dma); 00534 00535 00536 #endif // _VDP_BG_H_