sgdk: vdp_bg.h Source File

sgdk

- Main Page
- Related Pages
- Classes
- Files

- File List
- File Members

vdp_bg.h
Go to the documentation of this file.

    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
    00323 void VDP_drawTextBG(VDPPlane plane, const char *str, u16 x, u16 y);
    00345 void VDP_clearTextBG(VDPPlane plane, u16 x, u16 y, u16 w);
    00369 void VDP_clearTextAreaBG(VDPPlane plane, u16 x, u16 y, u16 w, u16 h);
    00387 void VDP_clearTextLineBG(VDPPlane plane, u16 y);
    00388
    00405 void VDP_drawText(const char *str, u16 x, u16 y);
    00421 void VDP_clearText(u16 x, u16 y, u16 w);
    00439 void VDP_clearTextArea(u16 x, u16 y, u16 w, u16 h);
    00451 void VDP_clearTextLine(u16 y);
    00452
    00479 u16 VDP_drawBitmap(VDPPlane plane, const Bitmap *bitmap, u16 x, u16 y);
    00510 u16 VDP_drawBitmapEx(VDPPlane plane, const Bitmap *bitmap, u16 basetile, u16 x, u16 y, u16 loadpal);
    00511
    00536 u16 VDP_drawImage(VDPPlane plane, const Image *image, u16 x, u16 y);
    00567 u16 VDP_drawImageEx(VDPPlane plane, const Image *image, u16 basetile, u16 x, u16 y, u16 loadpal, bool dma);
    00568
    00569
    00570 #endif // _VDP_BG_H_

All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines