home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / pOSxA.lzx / pOSxA / graphics / gfx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-12  |  1.3 KB  |  81 lines

  1. #ifndef    GRAPHICS_GFX_H
  2. #define    GRAPHICS_GFX_H
  3.  
  4. /*******************************************************************
  5.  pOS / Amiga adapt
  6. *******************************************************************/
  7.  
  8. #ifndef EXEC_TYPES_H
  9. #include <exec/types.h>
  10. #endif
  11. #ifndef __INC_POS_PLAYER_RECT_H
  12. #include <p:pLayer/Rect.h>
  13. #endif
  14. #ifndef __INC_POS_PGFX_STDGMAP_H
  15. #include <p:pGFX/StdGMap.h>
  16. #endif
  17.  
  18.  
  19.  
  20. struct Rectangle
  21. {
  22.   SLONG MinX,MinY;
  23.   SLONG MaxX,MaxY;
  24. };
  25.  
  26. struct Rect32
  27. {
  28.   SLONG MinX,MinY;
  29.   SLONG MaxX,MaxY;
  30. };
  31.  
  32. typedef struct tPoint
  33. {
  34.   SWORD x,y;
  35. } Point;
  36.  
  37. typedef UBYTE *PLANEPTR;
  38.  
  39. struct BitMap
  40. {
  41.     UWORD   BytesPerRow;
  42.     UWORD   Rows;
  43.     UBYTE   Flags;
  44.     UBYTE   Depth;
  45.     UWORD   pad;
  46.     PLANEPTR Planes[8];
  47. };
  48.  
  49. #define RASSIZE(w,h)    ((ULONG)(h)*( ((ULONG)(w)+15)>>3&0xFFFE))
  50.  
  51. #define BMF_CLEAR       GFXMAPF_Clear
  52. #define BMF_DISPLAYABLE GFXMAPF_Display
  53.  
  54. #define BMF_INTERLEAVED 0
  55. #define BMF_STANDARD    0
  56. #define BMF_MINPLANES   0
  57.  
  58. #define BMA_HEIGHT 0
  59. #define BMA_DEPTH 4
  60. #define BMA_WIDTH 8
  61. #define BMA_FLAGS 12
  62.  
  63.  
  64.  
  65. #ifdef __IGNORE_NOT_SUPPORTED__
  66.  
  67.  #define BITSET  0x8000
  68.  #define BITCLR  0
  69.  
  70.  #define AGNUS
  71.   #ifdef AGNUS
  72.   #define TOBB(a)  ((long)(a))
  73.  #else
  74.   #define TOBB(a)  ((long)(a)>>1)
  75.  #endif
  76.  
  77. #endif /** __IGNORE_NOT_SUPPORTED__ **/
  78.  
  79.  
  80. #endif    /* GRAPHICS_GFX_H */
  81.