home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Science / Science.zip / imdisp79.zip / DISPIO.H < prev    next >
C/C++ Source or Header  |  1992-04-19  |  2KB  |  50 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. /* * * *  External Function Prototypes * * * */
  11.  
  12. extern int DisplayOn (void);
  13. extern int DisplayOff (void);
  14. extern int WritePixel (int, int, int);
  15. extern int ReadPixel (int, int, int *);
  16. extern int DisplayLine (unsigned char *,int ,int ,int );
  17. extern int GetLine (unsigned char *,int ,int ,int );
  18. extern int FormatLine (unsigned char *buffer, int nsdd, int nsd, int bitshift, int NoScale, char status[]);
  19. extern int ClearDisplay (int );
  20. extern int Which_Tseng(void);
  21.  
  22. /* * * *  External Global Variables * * * */
  23.  
  24. extern int     atibank;
  25. extern int     LastPage;
  26. extern char    specname[8];
  27. extern int     dispnl, dispns, numDN, numshades, OneScreen;
  28. extern int     tseng;
  29.  
  30. /* DisplayDevice indicates the type of display (CGA=0, EGA=1, PGA=2).
  31.    dispnl        is the number of lines in the display.
  32.    dispns        is the number of samples in the display.
  33.    numDN         is the number of unique pixel values (e.g. 4 bits ->
  34.                  numDN=16).
  35.    numshades     is the number of shades each of red, green, and blue
  36.                  (e.g.  numshades=16 gives 16**3 = 4096 possible colors).
  37.    OneScreen     is true if there is only one screen, i.e. there is not
  38.                  image screen and a text screen.
  39. */
  40.  
  41. extern Color   DefaultPalette[256], PaletteTable[256];
  42.  
  43. extern enum Display
  44.              { DISPLAY_MIN = -1, CGA200, EGA350, PGA, VGA480, VGA200, BIOS,
  45.                ORCHID480, ORCHID600, EVGA640, EVGA512, EVGA800, EGA480,
  46.                ATI640, ATI800, ATI1024, PARADISE, ORCHID768, TRIDENT, VESA,
  47.                VESA800, VESA640, EV629, TEST, DISPLAY_MAX };
  48.  
  49. extern enum    Display DisplayDevice;
  50.