API Functions: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
* [[Function_FontFill|void FontFill(int x,int y,int width,int height,int tile)]] | * [[Function_FontFill|void FontFill(int x,int y,int width,int height,int tile)]] | ||
* [[Function_GetVsyncFlag|unsigned char GetVsyncFlag(void)]] | * [[Function_GetVsyncFlag|unsigned char GetVsyncFlag(void)]] | ||
* [[Function_MapSprite|void MapSprite(unsigned char startSprite,const char *map)]] | * [[Function_MapSprite|void MapSprite(unsigned char startSprite,const char *map)]] | ||
* [[Function_MoveSprite|void MoveSprite(unsigned char startSprite,unsigned char x,unsigned char y,unsigned char width,unsigned char height)]] | * [[Function_MoveSprite|void MoveSprite(unsigned char startSprite,unsigned char x,unsigned char y,unsigned char width,unsigned char height)]] | ||
Line 20: | Line 19: | ||
* [[Function_PrintLong|void PrintLong(int x,int y, unsigned long val)]] | * [[Function_PrintLong|void PrintLong(int x,int y, unsigned long val)]] | ||
* [[Function_Print|void Print(int x,int y,const char *string)]] | * [[Function_Print|void Print(int x,int y,const char *string)]] | ||
* [[Function_SetFontTable|void SetFontTable(const char *data)]] | * [[Function_SetFontTable|void SetFontTable(const char *data)]] | ||
* [[Function_SetFontTilesIndex|void SetFontTilesIndex(unsigned char index)]] | * [[Function_SetFontTilesIndex|void SetFontTilesIndex(unsigned char index)]] | ||
Line 51: | Line 49: | ||
* [[Function_EepromReadBlock|char EepromReadBlock(unsigned int blockId,struct EepromBlockStruct *block)]] | * [[Function_EepromReadBlock|char EepromReadBlock(unsigned int blockId,struct EepromBlockStruct *block)]] | ||
* [[Function_EepromWriteBlock|char EepromWriteBlock(struct EepromBlockStruct *block)]] | * [[Function_EepromWriteBlock|char EepromWriteBlock(struct EepromBlockStruct *block)]] | ||
==SD Card Functions== | ==SD Card Functions== | ||
Line 61: | Line 56: | ||
* [[Function_SoftReset|void SoftReset(void)]] | * [[Function_SoftReset|void SoftReset(void)]] | ||
* [[Function_WaitUs|void WaitUs(unsigned int microseconds)]] | * [[Function_WaitUs|void WaitUs(unsigned int microseconds)]] | ||
==Kernel Internal Functions== | |||
Though you can use these functions, they are subject to change or be removed at any release. | |||
* [[Function_isEepromFormatted|bool isEepromFormatted()]] | |||
* [[Function_ReadEeprom|unsigned char ReadEeprom(unsigned int addr)]] | |||
* [[Function_WriteEeprom|void WriteEeprom(unsigned int addr,unsigned char value)]] | |||
==Deprecated Function=== | |||
* [[Function_LoadMap|void LoadMap(void)]] | |||
* [[Function_RestoreTile|void RestoreTile(char x,char y)]] |
Revision as of 18:50, 27 February 2009
Video Engine Functions
- void ClearVram(void)
- void ClearVsyncFlag(void)
- void DrawMap2(unsigned char x,unsigned char y,const char *map)
- void DrawMap(unsigned char x,unsigned char y,const int *map)
- void FadeIn(unsigned char speed,bool blocking)
- void FadeOut(unsigned char speed,bool blocking)
- void Fill(int x,int y,int width,int height,int tile)
- void FontFill(int x,int y,int width,int height,int tile)
- unsigned char GetVsyncFlag(void)
- void MapSprite(unsigned char startSprite,const char *map)
- void MoveSprite(unsigned char startSprite,unsigned char x,unsigned char y,unsigned char width,unsigned char height)
- void PrintBinaryByte(char x,char y,unsigned char byte)
- void PrintByte(int x,int y, unsigned char val,bool zeropad)
- void PrintChar(int x,int y,char c)
- void PrintHexByte(char x,char y,unsigned char byte)
- void PrintHexInt(char x,char y,int byte)
- void PrintInt(int x,int y, unsigned int,bool zeropad)
- void PrintLong(int x,int y, unsigned long val)
- void Print(int x,int y,const char *string)
- void SetFontTable(const char *data)
- void SetFontTilesIndex(unsigned char index)
- void SetFont(char x,char y, unsigned char tileId)
- void SetSpritesOptions(unsigned char params)
- void SetSpritesTileTable(const char *data)
- void SetSpriteVisibility(bool visible)
- void SetTileMap(const int *data)
- void SetTileTable(const char *data)
- void SetTile(char x,char y, unsigned int tileId)
- void WaitVsync(int count)
Sound Engine Functions
- void InitMusicPlayer(const struct PatchStruct *patchPointersParam)
- void ResumeSong()
- void SetMasterVolume(unsigned char vol)
- void StartSong(const char *midiSong)
- void StopSong()
- void TriggerFx(unsigned char patch,unsigned char volume, bool retrig)
- void TriggerNote(unsigned char channel,unsigned char patch,unsigned char note,unsigned char volume)
Game Controllers Functions
- void EnableSnesMouse()
- unsigned char GetMouseSensitivity()
- unsigned int ReadJoypadExt(unsigned char joypadNo)
- unsigned int ReadJoypad(unsigned char joypadNo)
- bool SetMouseSensitivity(unsigned char value)
EEPROM Functions
- char EepromReadBlock(unsigned int blockId,struct EepromBlockStruct *block)
- char EepromWriteBlock(struct EepromBlockStruct *block)
SD Card Functions
TBD
Miscellaneous Functions
Kernel Internal Functions
Though you can use these functions, they are subject to change or be removed at any release.
- bool isEepromFormatted()
- unsigned char ReadEeprom(unsigned int addr)
- void WriteEeprom(unsigned int addr,unsigned char value)