ffeapi.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. #ifndef __FFEAPI__H__
  2. #define __FFEAPI__H__
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #ifdef __FFELNXSDL__
  7. #define __CONFIGFILE__ "ffelnxsdl.cfg"
  8. #endif
  9. #ifdef __FFEWIN__
  10. #define __CONFIGFILE__ "ffewin.cfg"
  11. #endif
  12. #ifdef __FFEWINSDL__
  13. #define __CONFIGFILE__ "ffewinsdl.cfg"
  14. #endif
  15. #ifndef __CONFIGFILE__
  16. #error Unknown version: Config file not set
  17. #endif
  18. typedef unsigned char UCHAR;
  19. typedef unsigned short USHORT;
  20. typedef unsigned long ULONG;
  21. void SystemInit (void);
  22. void SystemCleanup (void);
  23. void VideoBlit (UCHAR *pData, long x, long y, long w, long h, long jump);
  24. void VideoMaskedBlit (UCHAR *pData, long x, long y, long w, long h, long jump);
  25. void VideoReverseBlit (UCHAR *pData, long x, long y, long w, long h, long jump);
  26. void VideoGetPalValue (long palindex, UCHAR *pVal);
  27. void VideoSetPalValue (long palindex, UCHAR *pVal);
  28. long VideoPointerExclusive (void);
  29. void VideoPointerEnable (void);
  30. void VideoPointerDisable (void);
  31. long InputMouseReadButtons (void);
  32. void InputMouseReadMickeys (long *pXMick, long *pYMick);
  33. void InputMouseReadPos (long *pXPos, long *pYPos);
  34. void InputJoyReadPos (long *pXPos, long *pYPos);
  35. long InputJoyReadButtons (void);
  36. void InputKeybReadStates (UCHAR *pKeyArray);
  37. long InputKeybGetLastKey (void);
  38. void InputKeybSetLastKey (long);
  39. ULONG TimerGetTimeStamp (void);
  40. void TimerSleep (void);
  41. void TimerFrameUpdate (void);
  42. void SoundCheckInit (long *pAll, long *pDigi, long *pMidi);
  43. void SoundPlaySong (long index);
  44. void SoundStopSong (void);
  45. long SoundSongDone (void);
  46. void SoundStopAllSamples (void);
  47. void SoundPlaySample (long index, long vol, long pitch);
  48. long SoundStreamGetUsedBlocks (void);
  49. void SoundStreamReset (void);
  50. void SoundStreamAddBlock (void *pData, long size);
  51. void SoundStreamStart (void);
  52. void SoundStreamWait (void);
  53. void SoundStreamStop (void);
  54. typedef struct {
  55. char pName[16];
  56. int type;
  57. int size;
  58. } FileInfo;
  59. char *DirMakeAVIName (char *pBuf, char *pStub);
  60. char *DirMakeSampleName (char *pBuf, char *pFilename);
  61. char *DirMakeSongName (char *pBuf, char *pFilename);
  62. char *DirMakeCmmdrName (char *pBuf, char *pFilename);
  63. char *DirGetCmmdrPath (void);
  64. void DirResetCmmdrPath (void);
  65. void DirNavigateTree (FileInfo *pFile);
  66. int DirFindFirst (FileInfo *pFile);
  67. int DirFindNext (FileInfo *pFile);
  68. #ifdef __cplusplus
  69. }
  70. #endif
  71. #endif /* __FFEAPI_H__ */