home *** CD-ROM | disk | FTP | other *** search
/ GRIPS 2: Government Rast…rocessing Software & Data / GRIPS_2.cdr / dos / imdisp / source / dispio.h < prev    next >
C/C++ Source or Header  |  1990-11-02  |  2KB  |  64 lines

  1. /****  DISPIO.H
  2.  
  3.        Header file for DISPIO.H
  4.        Built by A. Warnock, ST Systems Corp., NASA/GSFC 5/90
  5.  
  6. ****/
  7.  
  8. /* * * *  Defined Constants * * * */
  9.  
  10. #define CGA       0
  11. #define EGA350    1
  12. #define PGA       2
  13. #define VGA480    3
  14. #define VGA200    4
  15. #define BIOS      5
  16. #define ORCHID480 6
  17. #define ORCHID600 7
  18. #define EVGA640   8
  19. #define EVGA512   9
  20. #define EVGA800  10
  21. #define EGA480   11
  22. #define ATI640   12
  23. #define ATI800   13
  24. #define ATI1024  14
  25. #define PARADISE 15
  26. #define ORCHID768   16
  27.  
  28. /* * * *  External Function Prototypes * * * */
  29.  
  30. extern int DisplayOn (void);
  31. extern int DisplayOff (void);
  32. extern int ReadPalette (struct Color *);
  33. extern int WritePalette (struct Color *);
  34. extern int WritePixel (int, int, int);
  35. extern int ReadPixel (int, int, int *);
  36. extern int DisplayLine (unsigned char *,int ,int ,int );
  37. extern int FormatLine (unsigned char *buffer, int nsdd, int nsd, int bitshift, int NoScale, char status[]);
  38. extern int ClearDisplay (int );
  39.  
  40. /* * * *  External Global Variables * * * */
  41.  
  42. extern char     specname[8];
  43. extern int      DisplayDevice, dispnl, dispns, numDN, numshades, OneScreen;
  44.  
  45. /* DisplayDevice indicates the type of display (CGA=0, EGA=1, PGA=2).
  46.    dispnl        is the number of lines in the display.
  47.    dispns        is the number of samples in the display.
  48.    numDN         is the number of unique pixel values (e.g. 4 bits ->
  49.                  numDN=16).
  50.    numshades     is the number of shades each of red, green, and blue
  51.                  (e.g.  numshades=16 gives 16**3 = 4096 possible colors).
  52.    OneScreen     is true if there is only one screen, i.e. there is not
  53.                  image screen and a text screen.
  54. */
  55.  
  56. extern struct   Color
  57. /*
  58.    This is the structure for the color palette.
  59.    The current palette is stored in PaletteTable.
  60. */
  61.          {
  62.                 unsigned char  r, g, b;
  63.          } DefaultPalette[256], PaletteTable[256];
  64.