sgdk: vdp_pal.h Source File

sgdk

- Main Page
- Related Pages
- Classes
- Files

- File List
- File Members

vdp_pal.h

    00001
    00005 #ifndef _VDP_PAL_H_
    00006 #define _VDP_PAL_H_
    00007
    00008
    00012 u16  VDP_getPaletteColor(u16 index);
    00016 void  VDP_getPaletteColors(u16 index, u16* dest, u16 count);
    00020 void VDP_getPalette(u16 num, u16 *pal);
    00021
    00025 void VDP_setPaletteColor(u16 index, u16 value);
    00029 void VDP_setPaletteColors(u16 index, const u16* values, u16 count);
    00033 void VDP_setPalette(u16 num, const u16 *pal);
    00034
    00035
    00036 // these functions should be private as they are called by VDP_fadeXXX functions internally
    00037 // but they can be useful sometime for better control on the fading processus
    00038 bool VDP_doFadingStep();
    00039 bool VDP_initFading(u16 fromcol, u16 tocol, const u16 *palsrc, const u16 *paldst, u16 numframe);
    00040
    00041
    00045 void VDP_fade(u16 fromcol, u16 tocol, const u16 *palsrc, const u16 *paldst, u16 numframe, u8 async);
    00049 void VDP_fadeTo(u16 fromcol, u16 tocol, const u16 *pal, u16 numframe, u8 async);
    00053 void VDP_fadeOut(u16 fromcol, u16 tocol, u16 numframe, u8 async);
    00057 void VDP_fadeIn(u16 fromcol, u16 tocol, const u16 *pal, u16 numframe, u8 async);
    00058
    00062 void VDP_fadePal(u16 numpal, const u16 *palsrc, const u16 *paldst, u16 numframe, u8 async);
    00066 void VDP_fadeToPal(u16 numpal, const u16 *pal, u16 numframe, u8 async);
    00070 void VDP_fadeOutPal(u16 numpal, u16 numframe, u8 async);
    00074 void VDP_fadeInPal(u16 numpal, const u16 *pal, u16 numframe, u8 async);
    00075
    00079 void VDP_fadeAll(const u16 *palsrc, const u16 *paldst, u16 numframe, u8 async);
    00083 void VDP_fadeToAll(const u16 *pal, u16 numframe, u8 async);
    00087 void VDP_fadeOutAll(u16 numframe, u8 async);
    00091 void VDP_fadeInAll(const u16 *pal, u16 numframe, u8 async);
    00092
    00096 u16 VDP_isDoingFade();
    00100 void VDP_waitFadeCompletion();
    00104 void VDP_interruptFade();
    00105
    00106
    00107 #endif // _VDP_PAL_H_

All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines