home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / mt / video.h < prev    next >
Text File  |  1989-01-12  |  2KB  |  36 lines

  1. /* video.h  header file for video attribute and mode data */
  2. /* works in conjuction with install.c's output file install.dat */
  3.  
  4. /* defines to allow same header file to work for both initialization */
  5. /*  and reference.  Only define the word ALLOCATE in the main() module. */
  6.  
  7. #ifdef ALLOCATE
  8.     #define GLOBAL
  9.     #define INIT(x)   =x
  10. #else
  11.     #define GLOBAL extern
  12.     #define INIT(x)
  13. #endif
  14.  
  15.  
  16. GLOBAL int g_text_mode;
  17. GLOBAL int g_graph_mode;
  18. GLOBAL int g_dots_v;                    /* graphics pixels vertically */
  19. GLOBAL int g_dots_h;                    /* horizontally */
  20. GLOBAL int g_norm_attrib;               /* attribute for normal characters */
  21. GLOBAL int g_cursor_attrib;             /*   for the cursor highlight */
  22. GLOBAL int g_emph_attrib;               /*   for emphasized characters */
  23. GLOBAL int g_let_dots_v;                /* character pixels vertical */
  24. GLOBAL int g_let_dots_h;                /* character pixels width */
  25. GLOBAL int g_text_char_v;               /* number of char lines, text mode */
  26. GLOBAL int g_text_char_h;               /* number of char columns */
  27. GLOBAL int g_graph_char_h;              /* ditto in graphics mode for char */
  28. GLOBAL int g_graph_char_v;              /* written to graphics screens */
  29. GLOBAL int g_text_colors;               /* total number of colors available */
  30. GLOBAL int g_graph_colors;
  31.  
  32.  
  33. GLOBAL int g_line_color;                /* the color lines are drawn with */
  34. GLOBAL int g_back_color;                /* the background color */
  35. GLOBAL int g_emph_color;                /* line color for emphasis */
  36.