home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / txcl552 / inc / tcxlvuv.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-03-15  |  6.0 KB  |  99 lines

  1. /*=====[ The TesSeRact(TM) CXL User Interface Development System ]======*
  2.  | Copyright (c) 1987-1991, Innovative Data Concepts, Inc.
  3.  | All Rights Reserved.
  4.  |
  5.  | This Library is part of IDC's TesSeRact Development Tools product
  6.  | line. For information about other IDC products, call  1-215-443-9705.
  7.  *-V--------------------------------------------------------------------*
  8.  | $Header:   tcxlvuv.h     552.0   17 Mar 1991 18:26:58  $
  9.  |
  10.  | $Log:   tcxlvuv.h    $
  11.  *-D--------------------------------------------------------------------*
  12.  | <TCXLvUV.h> : Definitions and prototypes for TCXL UltraVision support.
  13.  *-N-----------------------[ Notes and Caveats ]------------------------*
  14.  | 1) UltraVision(tm) is an MS/PC-DOS-specific, video-enhancement utility
  15.  |    for EGA/VGA distributed by Personics.
  16.  *======================================================================*/
  17. #ifndef  _TCXLvUV_
  18. #  define   _TCXLvUV_ 1                /* Only once!                    */
  19. #  ifndef   _TCXLvid_
  20. #     include  <TCXLvid.h>             /* Video definitions             */
  21. #  endif
  22.                               /*- UltraVision Flags --------------------*/
  23. #define  VU_RES      0x80              /* UltraVision resident          */
  24. #define  VU_ACT      0x40              /* UltraVision active            */
  25.                               /*- UltraVision Card Codes ---------------*/
  26. #define  VU_GEC      0x00              /* Generic EGA, Color            */
  27. #define  VU_GEM      0x04              /* Generic EGA, Monochrome       */
  28. #define  VU_GVV      0x05              /* Generic VGA, VGA monitor      */
  29. #define  VU_PVV      0x06              /* Paradise VGA, VGA monitor     */
  30. #define  VU_HVV      0x07              /* Super VGA, VGA monitor        */
  31. #define  VU_BEE      0x0A              /* UV EGA Booster, EGA monitor   */
  32. #define  VU_NEE      0x0B              /* NEC GB-1, EGA monitor         */
  33. #define  VU_SEE      0x0C              /* Genoa SuperEGA, EGA monitor   */
  34. #define  VU_AEE      0x0D              /* Alt EGA Booster, EGA monitor  */
  35. #define  VU_AEM      0x0E              /* Alt EGA Booster, Monochrome   */
  36. #define  VU_GVA      0x19              /* Generic VGA, Autosync         */
  37. #define  VU_PVA      0x1A              /* Paradise VGA, Autosync        */
  38. #define  VU_HVA      0x1B              /* Super VGA, Autosync           */
  39. #define  VU_BEA      0x14              /* UV EGA Booster, Autosync      */
  40. #define  VU_NEA      0x15              /* NEC GB-1, Autosync            */
  41. #define  VU_SEA      0x16              /* Genoa SuperEGA, Autosync      */
  42. #define  VU_AEA      0x17              /* Alt EGA Booster, Autosync     */
  43.                               /*- UltraVision Video Modes --------------*/
  44. #define  VU_A25      0x11              /* 80x25                         */
  45. #define  VU_A43      0x12              /* 80x43 (EGA), 80x50 (VGA)      */
  46. #define  VU_A34      0x13              /* 80x34 (EGA), 80x36 (VGA)      */
  47. #define  VU_A60      0x14              /* 80x60 (EGA), 80x63 (VGA)      */
  48. #define  VU_B25      0x19              /* 94x25                         */
  49. #define  VU_B43      0x1A              /* 94x43 (EGA), 94x50 (VGA)      */
  50. #define  VU_B36      0x1B              /* 94x36                         */
  51. #define  VU_B63      0x1C              /* 94x63                         */
  52. #define  VU_C25      0x21              /* 108x25                        */
  53. #define  VU_C43      0x22              /* 108x43 (EGA), 108x50 (VGA)    */
  54. #define  VU_C34      0x23              /* 108x34 (EGA), 108x36 (VGA)    */
  55. #define  VU_C60      0x24              /* 108x60 (EGA), 108x63 (VGA)    */
  56. #define  VU_D25      0x31              /* 120x25                        */
  57. #define  VU_D43      0x32              /* 120x43 (EGA), 120x50 (VGA)    */
  58. #define  VU_D36      0x39              /* 120x36                        */
  59. #define  VU_D63      0x3A              /* 120x63                        */
  60. #define  VU_E25      0x33              /* 132x25                        */
  61. #define  VU_E44      0x34              /* 132x44, 132x50 (SuperVGA)     */
  62. #define  VU_E36      0x3B              /* 132x36                        */
  63. #define  VU_E60      0x3C              /* 132x60                        */
  64.  
  65. /*------------------[ Data objects and access macros ]------------------*/
  66.  
  67. TYP   struct   _Vuv  _VuvT, *_VuvP;    /* Object, pointer types         */
  68.  
  69. struct   _Vuv                 /*-[ UltraVision data object ]------------*/
  70. {  DwdT     vptr;             /* 00|00 : _VuvPtr : Table pointer        */
  71.    BytT     vflg;             /* 04|04 : _VuvFlg : Flags                */
  72.    BytT     vcrd;             /* 05|05 : _VuvCrd : Card code            */
  73.    BytT     vmod;             /* 06|06 : _VuvMod : Text Mode            */
  74.    BytT     vfut;             /* 07|07 : Reserved for future            */
  75. };                            /* 08|08 ]--------------------------------*/
  76.  
  77. GBL   _VuvT CDC   _VuvCtl;             /*- Global UltraVision object ---*/
  78. #define  _VuvPtr     (_VuvCtl.vptr)             /* Table pointer        */
  79. #define  _VuvFlg     (_VuvCtl.vflg)             /* Flags                */
  80. #define  _VuvRes     (0 != (_VuvFlg & VU_RES))     /* Resident          */
  81. #define  _VuvAct     (0 != (_VuvFlg & VU_ACT))     /* Active            */
  82. #define  _VuvCrd     (_VuvCtl.vcrd)             /* Card code            */
  83. #define  _VuvMod     (_VuvCtl.vmod)             /* Text mode            */
  84.  
  85. /*------------------------[ Function prototypes ]-----------------------*/
  86.  
  87. #ifdef __cplusplus                     /* No mangling, please           */
  88.    extern   "C"   {
  89. #endif
  90. VOID  PAS   _VuvDis(NOARG);            /* Disable UltraVision           */
  91. VOID  PAS   _VuvEna(NOARG);            /* Enable UltraVision            */
  92. IntT  PAS   _VuvGet(NOARG);            /* Get UltraVision text-mode     */
  93. VOID  PAS   _VuvSet(IntT md);          /* Set UltraVision text-mode     */
  94. IntT  PAS   _VuvVal(IntT md);          /* Validate UltraVision text-mode*/
  95. #ifdef __cplusplus
  96.    }
  97. #endif
  98. #endif   /*- _TCXLvUV_ : End of TCXLvUV.h ------------------------------*/
  99.