home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / GRAPHICS / MISC / PCXPIC10.ZIP / CGA.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-07  |  754 b   |  54 lines

  1. /*
  2.  * CGA.H -- (CGA) image manipulation routines
  3.  *          Header file
  4.  */
  5.  
  6. #ifndef __CGA_H
  7. #define __CGA_H
  8.  
  9.  
  10.  
  11.  
  12. /* TYPEDEFS */
  13.  
  14. typedef char          BYTE;
  15. typedef unsigned char UBYTE;
  16. typedef int           WORD;
  17. typedef unsigned int  UWORD;
  18. typedef long          LONG;
  19. typedef unsigned long ULONG;
  20.  
  21. typedef int           boolean;
  22. typedef unsigned char bool;
  23.  
  24.  
  25.  
  26.  
  27. /* DEFINES */
  28.  
  29. #define _BLACK 0
  30. #define _BLUE  1
  31. #define _RED   2
  32. #define _WHITE 3
  33.  
  34.  
  35.  
  36.  
  37. /* PROTOTYPES */
  38.  
  39. void cls(void);
  40.  
  41. void fload_pic(const char *name);
  42. int  fload_pcx(const char *name);
  43.  
  44. void init_cga(UBYTE vmode);
  45.  
  46. void mode(WORD vmode);
  47.  
  48. void put_pixel(int x, int y, int color);
  49.  
  50. void save_pic(const char *name);
  51.  
  52.  
  53. #endif __CGA_H
  54.