home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / gbuk.lha / src / GFXFUNC.H < prev    next >
C/C++ Source or Header  |  1996-10-11  |  3KB  |  110 lines

  1. #ifndef    GFXFUNC_H
  2. #define    GFXFUNC_H
  3.  
  4. #define    PAD_RIGHT    0x01
  5. #define    PAD_LEFT    0x02
  6. #define    PAD_UP        0x04
  7. #define    PAD_DOWN    0x08
  8. #define    PAD_BUTTON1    0x10
  9. #define    PAD_BUTTON2    0x20
  10. #define    PAD_BUTTON3    0x10
  11. #define    PAD_BUTTON4    0x20
  12.  
  13. #define    BLIT_IMAGE        0
  14. #define    BLIT_COLORFILL    1
  15.  
  16. #define    MEMF_ZERO        1
  17. #define    MEMF_ABORT        2
  18.  
  19. typedef    unsigned short UWORD;
  20. typedef unsigned char UBYTE;
  21. typedef    signed char    SBYTE;
  22. typedef unsigned long ULONG;
  23.  
  24. typedef    void    * GXIMAGE;
  25.  
  26. typedef struct{
  27.     long    Width,Height;
  28. }GXSCREENMODEINFO;
  29.  
  30. typedef struct{
  31.     long    X,Y,Width,Height;
  32. }GXOBLONG;
  33.  
  34. typedef    struct{
  35.     UBYTE    Red,Green,Blue,Pad;
  36. }GXPALETTE;
  37.  
  38. typedef struct{
  39.     char    *Name;
  40. }GXVOLUME;
  41.  
  42. typedef struct{
  43.     void    *Next;
  44.     char    *Name;
  45.     long    Length;
  46.     long    File;
  47. }GXFILEINFO;
  48.  
  49. typedef struct{
  50.     long    Type;
  51.     long    Color;
  52.     void    *FromImage;
  53.     void    *ToImage;
  54.     GXOBLONG    From;
  55.     long    XTo,YTo;
  56. }GXBLITLIST;
  57.  
  58. typedef    struct{
  59.     long    X,Y,LeftButton,MiddleButton,RightButton;
  60. }GXMOUSEINFO;
  61.  
  62. typedef    struct{
  63.     int            Width,Height,BytesAcross;
  64.     void        *Data;
  65.     int            NPalette;
  66.     GXPALETTE    *Palette;
  67. }GXPICTURE;
  68.  
  69. #define    MODE_LORES    0
  70. #define    MODE_HIRES    1
  71.  
  72. GXSCREENMODEINFO    *GXMakeScreenModeInfo(long *number);
  73. void                GXKillScreenModeInfo(GXSCREENMODEINFO *info);
  74. long                GXSetScreenMode(long mode);
  75. GXVOLUME            *GXMakeVolumeInfo(long *size);
  76. void                GXKillVolumeInfo(GXVOLUME *vol);
  77. int        GXMakeDirectoryInfo(char *name, GXFILEINFO **info);
  78. void                GXKillDirectoryInfo(GXFILEINFO *info);
  79. void                GXInitiateHardware(void);
  80. void                *GXLoadFileToMemory(char *name, size_t *size);
  81. void                *GXGetMem(size_t amount, long flags);
  82. void                GXFreeMem(void *data);
  83. GXIMAGE                *GXMakeImage(int width, int height);
  84. void                GXKillImage(GXIMAGE *image);
  85. void                GXSetPaletteRange(GXPALETTE *Pal, int FirstColor, int NumberColors);
  86. GXIMAGE                *GXPictureToImage(GXPICTURE *pic, long transparency, long TransparentColor);
  87. int                    GXGetPaletteRange(GXPALETTE *Pal, int FirstColor, int NumberColors);
  88. GXIMAGE                *GXStartDrawing(int n);
  89. void                GXDrawBlitList(GXBLITLIST *b, int nblit);
  90. long                GXReadJoystick(int n);
  91. void                GXQuitCode(char *Message, ...);
  92. void                GXSystemUpdate(void);
  93. void                GXReadMouse(GXMOUSEINFO    *info);
  94. int                    GXMapColor(GXPALETTE *pal);
  95. long                GXImageHeight(GXIMAGE *image);
  96. long                GXImageWidth(GXIMAGE *image);
  97. void                GXReserveColors(int start, int number, int reserve);
  98. int                    GXSaveMemoryToFile(void *data, size_t LengthData, char *FileName);
  99. GXBLITLIST            *GXNextBlit(void);
  100. void                GXDoBlit(void);
  101. int                    GXPrintf(const char *message, ...);
  102. long                GXKeyDown(long key);
  103. long                GXNextKey(void);
  104. int                    GXCheckQuit(void);
  105. GXPICTURE            *GXGetPicture(GXIMAGE *image, GXOBLONG *area);
  106. char                *GXGetLastErrorMessage(void);
  107. long                GXTimer(void);
  108. long                GXTicksPerSecond(void);
  109.  
  110. #endif