home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c222 / 1.ddi / INC / GR_HEAD.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-01-17  |  1.7 KB  |  46 lines

  1. /*********************
  2.  *
  3.  *  gr_head.h [NON-ANSI] - graphics header file.
  4.  *
  5.  *  Purpose: This file contains the constants and global variables for
  6.  *           the graphics primitves.
  7.  *
  8.  *  Blackstar C Function Library
  9.  *  (c) Copyright 1985,1989 Sterling Castle Software
  10.  *
  11.  *******/
  12.  
  13. #define EOS     32000  /* end of shape table   */
  14. #define RDDOT      13
  15. #define WRDOT      12
  16. #define IVIDEO   0x10  /* video interrupt      */
  17. #define GR320      04  /* CGA 320x200 mode     */
  18. #define GR640      06  /* CGA 640x200 mode     */
  19. #define EGA_D    0x0d  /* EGA 320x200          */
  20. #define EGA_E    0x0e  /* EGA 640x200          */
  21. #define EGA_F    0x0f  /* EGA 640x350 3 color  */
  22. #define EGA_10   0x10  /* EGA 640x350 16 color */
  23.  
  24. _packed struct FONT {
  25.     char type;      /* type 10-user,11-mon,12-8x8 (43 line ) */
  26.     int count;      /* count of characters in font           */
  27.     char bperc;     /* bytes per character                   */
  28.     char block;
  29.     char offs;      /* offset into table for start           */
  30.     char *table;    /* table of character values             */
  31.     };
  32.  
  33. extern char grbcolr_,grbcol_,grfcolr_,grfcol_,grxorf_;
  34. extern int grx_,gry_,grrows_,grcols_,grmode_,gr_regen_;
  35.  
  36. extern short int gr_seg_;   /* graphics buffer segment    */
  37. extern int gr_off_;         /* graphics buffer offset     */
  38. extern char *gr_buf_;       /* graphics buffer pointer    */
  39. extern int gr_bytes_ ;      /* # bytes in graphics buffer */
  40. extern int gr_minx_,gr_maxx_;
  41. extern int gr_miny_,gr_maxy_;             /* graphics window */
  42. extern char *grfpal_,*grbpal_;            /* foregr/backgrnd color palette*/
  43. extern char gr_egap_[],gr_cgap0_[],gr_cgap1_[];      /* standard palette */
  44.  
  45.  
  46.