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 00070 void VDP_setHorizontalScroll(VDPPlane plane, s16 value); 00087 void VDP_setHorizontalScrollVSync(VDPPlane plane, s16 value); 00119 void VDP_setHorizontalScrollTile(VDPPlane plane, u16 tile, s16* values, u16 len, TransferMethod tm); 00150 void VDP_setHorizontalScrollLine(VDPPlane plane, u16 line, s16* values, u16 len, TransferMethod tm); 00151 00170 void VDP_setVerticalScroll(VDPPlane plane, s16 value); 00186 void VDP_setVerticalScrollVSync(VDPPlane plane, s16 value); 00216 void VDP_setVerticalScrollTile(VDPPlane plane, u16 tile, s16* values, u16 len, TransferMethod tm); 00217 00232 void VDP_clearPlane(VDPPlane plane, bool wait); 00233 00243 VDPPlane VDP_getTextPlane(); 00251 u16 VDP_getTextPalette(); 00259 u16 VDP_getTextPriority(); 00260 00275 void VDP_setTextPlane(VDPPlane plane); 00286 void VDP_setTextPalette(u16 palette); 00299 void VDP_setTextPriority(u16 prio); 00300 00332 void VDP_drawTextEx(VDPPlane plane, const char *str, u16 basetile, u16 x, u16 y, TransferMethod tm); 00363 void VDP_clearTextEx(VDPPlane plane, u16 basetile, u16 x, u16 y, u16 w, TransferMethod tm); 00395 void VDP_clearTextAreaEx(VDPPlane plane, u16 basetile, u16 x, u16 y, u16 w, u16 h, TransferMethod tm); 00396 00420 void VDP_drawTextBG(VDPPlane plane, const char *str, u16 x, u16 y); 00443 void VDP_clearTextBG(VDPPlane plane, u16 x, u16 y, u16 w); 00468 void VDP_clearTextAreaBG(VDPPlane plane, u16 x, u16 y, u16 w, u16 h); 00486 void VDP_clearTextLineBG(VDPPlane plane, u16 y); 00487 00504 void VDP_drawText(const char *str, u16 x, u16 y); 00520 void VDP_clearText(u16 x, u16 y, u16 w); 00538 void VDP_clearTextArea(u16 x, u16 y, u16 w, u16 h); 00550 void VDP_clearTextLine(u16 y); 00551 00578 bool VDP_drawBitmap(VDPPlane plane, const Bitmap *bitmap, u16 x, u16 y); 00609 bool VDP_drawBitmapEx(VDPPlane plane, const Bitmap *bitmap, u16 basetile, u16 x, u16 y, bool loadpal); 00610 00635 bool VDP_drawImage(VDPPlane plane, const Image *image, u16 x, u16 y); 00666 bool VDP_drawImageEx(VDPPlane plane, const Image *image, u16 basetile, u16 x, u16 y, bool loadpal, bool dma); 00667 00668 00669 #endif // _VDP_BG_H_