home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 2.ddi / TVDEMOS.ZIP / GRAPHAPP.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1.6 KB  |  50 lines

  1. /*-------------------------------------------------------------*/
  2. /*                                                             */
  3. /*   Turbo Vision 1.0                                          */
  4. /*   Turbo Vision Demo                                         */
  5. /*   Copyright (c) 1991 by Borland International               */
  6. /*                                                             */
  7. /*   BGI support file for use with Turbo Vision programs. See  */
  8. /*   TVBGI.CPP for an example of how to use this file.         */
  9. /*-------------------------------------------------------------*/
  10.  
  11. #if !defined( __GRAPHAPP_H )
  12. #define __GRAPHAPP_H
  13.  
  14. #include <tv.h>
  15.  
  16. #if !defined( __GRAPHICS_H )
  17. #include <graphics.h>
  18. #endif  // __GRAPHICS_H
  19.  
  20. typedef void (*DriverPtrFunction)();
  21.  
  22. Boolean graphActive = False;
  23. DriverPtrFunction driverPtr = 0;
  24. unsigned int driverSize = 0;
  25. char  emptyString[] = "";
  26. char *bgiPath = emptyString;
  27. int driver = DETECT;
  28. int mode = 0;
  29.  
  30. const MAXSIZE = 80;
  31. const int lastDriver = 10;
  32. char driverName[lastDriver][10] =
  33.     {"CGA",                //  1. CGA
  34.      "CGA",                //  2. MCGA
  35.      "EGAVGA",             //  3. EGA
  36.      "EGAVGA",             //  4. EGA64
  37.      "EGAVGA",             //  5. EGAMONO
  38.      "IBM8514",            //  6. IBM8514
  39.      "HERC",               //  7. HercMono
  40.      "ATT",                //  8. ATT400
  41.      "EGAVGA",             //  9. VGA
  42.      "PC3270"};            // 10. PC3270
  43.  
  44. Boolean graphAppInit( int, int, char *, Boolean);
  45. void graphAppDone(void);
  46. Boolean graphicsStart(void);
  47. void graphicsStop(void);
  48.  
  49. #endif  // __GRAPHAPP_H
  50.