home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 300-399 / ff368.lzh / GraphicsPak / graphics_pak.h < prev    next >
C/C++ Source or Header  |  1990-08-15  |  2KB  |  67 lines

  1. /***************************************************************************
  2.  * graphics_pak.h - general-purpose graphics functions to make programming *
  3.  *               alot easier!                                              *
  4.  *               This is the header file for graphics_pak.c                *
  5.  * ----------------------------------------------------------------------- *
  6.  * Author: Paul T. Miller                                                  *
  7.  * ----------------------------------------------------------------------- *
  8.  * Modification History:                                                   *
  9.  * ---------------------                                                   *
  10.  * Date     Comment                                                        *
  11.  * -------- -------                                                        *
  12.  * 05-09-90 Bring over AllocBitMap()/FreeBitMap()
  13.  *
  14.  ***************************************************************************/
  15.  
  16. #ifndef GRAPHICS_PAK_H
  17. #define GRAPHICS_PAK_H
  18.  
  19. #ifndef EXEC_TYPES_H
  20. #include <exec/types.h>
  21. #endif
  22.  
  23. #ifndef GRAPHICS_RASTPORT_H
  24. #include <graphics/rastport.h>
  25. #endif
  26.  
  27. #include <exec/memory.h>
  28.  
  29. #ifndef CHIPMEM
  30. #define CHIPMEM      0x00  /* allocate and use CHIP memory (default) */
  31. #define FASTMEM      0x80  /* use FAST memory (download for display) */
  32. #endif
  33.  
  34. /* Graphics Constants */
  35. #define LORES_WIDTH     320
  36. #define LORES_HEIGHT    200
  37. #define HIRES_WIDTH     640
  38. #define HIRES_HEIGHT    400
  39. #define LORES_OSCAN_W   362
  40. #define LORES_OSCAN_H   240
  41. #define HIRES_OSCAN_W   740
  42. #define HIRES_OSCAN_H   480
  43. #define MAX_COLORS      64
  44.  
  45. /* Library flags */
  46. #define GFXBASE         0x0001
  47. #define INTUITIONBASE   0x0002
  48. #define LAYERSBASE      0x0004
  49. #define DISKFONTBASE    0x0008
  50. #define MATHTRANSBASE   0x0010
  51.  
  52. int OpenLibraries(UWORD);
  53. void CloseLibraries(void);
  54. void DrawPixel(struct RastPort *, int, int, int);
  55. void DrawLine(struct RastPort *, int, int, int, int, int);
  56. void DrawBox(struct RastPort *, int, int, int, int, int);
  57. void FillBox(struct RastPort *, int, int, int, int, int);
  58. void WriteText(struct RastPort *, long, long, char *, long);
  59. struct BitMap *AllocBitMap(USHORT, USHORT, UBYTE, UBYTE);
  60. void FreeBitMap(struct BitMap *);
  61. void MoveBitMap(struct BitMap *, int, int, int, int, struct BitMap *, int, int);
  62. void DrawBitMap(struct BitMap *, int, int, int, int, struct BitMap *);
  63. void CopyBitMap(struct BitMap *, int, int, int, int, struct BitMap *);
  64.  
  65. #endif   /* GRAPHICS_PAK_H */
  66.  
  67.