home *** CD-ROM | disk | FTP | other *** search
/ World of Graphics / WOGRAPH.BIN / 472.MGRAPH.EQU < prev    next >
Text File  |  1993-03-07  |  8KB  |  233 lines

  1. ;****************************************************************************
  2. ;*
  3. ;*                        MegaGraph Graphics Library
  4. ;*
  5. ;*                  Copyright (C) 1993 Kendall Bennett.
  6. ;*                            All rights reserved.
  7. ;*
  8. ;* Filename:    $RCSfile: mgraph.equ $
  9. ;* Version:        $Revision: 1.1 $
  10. ;*
  11. ;* Language:    80386 Assembler
  12. ;* Environment:    IBM PC (MS DOS)
  13. ;*
  14. ;* Description:    All the equates and = directives used by the MegaGraph
  15. ;*                graphic library assembly modules are contained within this
  16. ;*                file for use by the various assembly modules.
  17. ;*
  18. ;* $Id: mgraph.equ 1.1 1993/03/03 10:45:29 kjb Exp $
  19. ;*
  20. ;* Revision History:
  21. ;* -----------------
  22. ;*
  23. ;* $Log: mgraph.equ $
  24. ;* Revision 1.1  1993/03/03  10:45:29  kjb
  25. ;* Initial revision
  26. ;*
  27. ;****************************************************************************
  28.  
  29. STRUC    RectStruc
  30.         left        dw    ?    ; left co-ord of viewport
  31.         top            dw    ?    ; top co-ord of viewport
  32.         right        dw    ?    ; right co-ord of viewport
  33.         bottom        dw    ?    ; bottom co-ord of viewport
  34. ENDS    RectStruc
  35.  
  36. STRUC    paletteEnt
  37.         red            db    ?
  38.         green        db    ?
  39.         blue        db    ?
  40. ENDS    paletteEnt
  41.  
  42. pal                    EQU    (paletteEnt PTR es:bx)
  43. pal_dssi            EQU (paletteEnt PTR ds:si)
  44.  
  45. ; Graphics subsystem types supported
  46.  
  47. grDETECT            =    0    ; Auto detect the driver
  48. grCGA                =    1    ; Standard CGA
  49. grMCGA                =    2    ; Standard MCGA
  50. grEGA                =    3    ; Standard EGA
  51. grEGA64                =    4    ; EGA with 64kb RAM
  52. grEGAMONO            =    5    ; EGA with Mono monitor
  53. grEGA64MONO            =    6    ; EGA with Mono monitor (64kb ram)
  54. grHERCMONO            =    7    ; Standard Hercules
  55. grVGA                =    8    ; Standard VGA
  56. grSVGA                =   9    ; VESA Super VGA
  57. grSVGA_ATI            =    10    ; ATI Technologies SuperVGA
  58. grSVGA_AHEADA        =    11    ; AHEAD A SuperVGA
  59. grSVGA_AHEADB        =    12    ; AHEAD B SuperVGA
  60. grSVGA_CHIPS        =    13    ; Chips & Technologies SuperVGA
  61. grSVGA_EVEREX        =    14    ; Everex SuperVGA
  62. grSVGA_GENOA        =    15    ; Genoa Systems SuperVGA (GVGA chipset)
  63. grSVGA_OAKTECH        =    16    ; OAK Technologies SuperVGA
  64. grSVGA_PARADISE        =    17    ; Paradise SuperVGA
  65. grSVGA_TRIDENT88    =    18    ; Trident 8800 SuperVGA
  66. grSVGA_TRIDENT89    =    19    ; Trident 8900 SuperVGA
  67. grSVGA_VIDEO7        =    20    ; Video7 SuperVGA
  68. grSVGA_ET3000        =    21    ; Tseng Labs ET3000 SuperVGA
  69. grSVGA_ET4000        =    22    ; Tseng Labs ET4000 SuperVGA
  70. grSVGA_NCR            =    23    ; NCR 77C22E SuperVGA
  71. grSVGA_S3            =    24    ; S3 SuperVGA
  72. grSVGA_ACUMOS        =    25    ; Acumos SuperVGA
  73. grSVGA_AL2101        =    26    ; Advance Logic AL2101 SuperVGA
  74. grSVGA_MXIC            =    27    ; MXIC 68010 SuperVGA
  75. grSVGA_P2000        =    28    ; Primus 2000 SuperVGA
  76. grSVGA_RT3106        =    29    ; RealTek 3106 SuperVGA
  77. grSVGA_CIRRUS54        =    30    ; Cirrus 5422 SuperVGA
  78.  
  79. ; Internal chip ID numbers. These will be used internally by the video
  80. ; device drivers to ensure that the code will work correctly for each
  81. ; different chip ID for a particular type of video card.
  82.  
  83. grATI_18800            =     0    ; ATI 18800 chip
  84. grATI_18800_1        =    1    ; ATI 18800-1 chip
  85. grATI_28800_2        =    2    ; ATI 28800-2 chip
  86. grATI_28800_4        =    3    ; ATI 28800-4 chip
  87. grATI_28800_5        =    4    ; ATI 28800-5 chip
  88.  
  89. grCHIPS_82c451        =    0    ; C&T 82c451 chip
  90. grCHIPS_82c452        =    1    ; C&T 82c452 chip
  91. grCHIPS_82c453        =    2    ; C&T 82c453 chip
  92.  
  93. grEVEREX_EvNR        =    0    ; Everex normal chipset
  94. grEVEREX_Ev236        =    1    ; Everex Ev236 chipset (Trident)
  95. grEVEREX_Ev620        =    2    ; Everex Ev620 chipset (Trident)
  96. grEVEREX_Ev629        =    3    ; Everex Ev629 chipset (ET4000)
  97. grEVEREX_Ev673        =    4    ; Everex Ev673 chipset (Trident)
  98. grEVEREX_Ev678        =    5    ; Everex Ev678 chipset (Trident)
  99.  
  100. grOAK_037C            =    0    ; Oak OTI-037C chipset
  101. grOAK_067            =    1    ; Oak OTI-067 chipset
  102. grOAK_077            =    2    ; Oak OTI-077 chipset
  103.  
  104. grPARA_PVGA1A        =    0    ; Paradise PVGA1A chipset
  105. grPARA_90C00        =    1    ; Paradise WD90C00 chipset
  106. grPARA_90C10        =    2    ; Paradise WD90C10 chipset
  107. grPARA_90C11        =    3    ; Paradise WD90C11 chipset
  108. grPARA_90C30        =    4    ; Paradise WD90C30 chipset
  109. grPARA_90C31        =    5    ; Paradise WD90C31 chipset
  110.  
  111. grET4000_MEGAEVA    =    0    ; Standard Tseng MegaEva/2 ET4000 board
  112. grET4000_SPEEDSTAR    =    1    ; Diamond Speedstar 24 ET4000 board (24 bit)
  113. grET4000_GENOA        =    2    ; Genoa 7900 ET4000 board (24 bit)
  114.  
  115. grS3_911            =    0    ; S3 86c911 SuperVGA chip
  116. grS3_924            =    1    ; S3 86c924 SuperVGA chip
  117. grS3_801_805        =    2    ; S3 86c801/86c805 SuperVGA chip
  118. grS3_928            =    4    ; S3 86c928 SuperVGA chip
  119.  
  120. grCIRRUS_5422        =    0    ; Cirrus 5422 SuperVGA chip
  121.  
  122. ; Video DAC types
  123.  
  124. grVGADAC            =    0    ; Normal VGA DAC
  125. grHCDAC                =    1    ; HiColor 15 bit DAC
  126. grHC2DAC            =    2    ; HiColor 16 bit DAC
  127. grTCDAC                =    3    ; TrueColor 24 bit DAC
  128.  
  129. ; Number of colors is current video mode
  130.  
  131. gr16Color            =    0    ; 16 color video mode
  132. gr256Color            =    1    ; 256 color video mode
  133. gr32kColor            =    2    ; 32k color video mode
  134. gr16mColor            =    3    ; 16m color video mode
  135.  
  136. ; Graphics modes supported.
  137.  
  138. grEGA_320x200x16    =     0    ; 320x200 16 color 8 page
  139. grEGA_640x200x16    =     1    ; 640x200 16 color 4 page
  140. grEGA_640x350x16    =     2    ; 640x350 16 color 2 page
  141.  
  142. grVGA_640x400x16    =     3    ; 640x400 16 color 2 page
  143. grVGA_640x480x16    =     4    ; 640x480 16 color 1 page
  144. grVGA_320x200x256    =     5    ; 320x200 256 color 1 page
  145.  
  146. grVGAX_320x200x256    =    6    ; 320x200 256 color 4 page
  147. grVGAX_320x240x256    =     7    ; 320x240 256 color 3 page
  148. grVGAX_320x400x256    =     8    ; 320x400 256 color 2 page
  149. grVGAX_320x480x256    =     9    ; 320x480 256 color 1 page
  150. grVGAX_360x200x256    =     10    ; 360x200 256 color 3 page
  151. grVGAX_360x240x256    =     11    ; 360x240 256 color 3 page
  152. grVGAX_360x400x256    =     12    ; 360x400 256 color 1 page
  153. grVGAX_360x480x256    =     13    ; 360x480 256 color 1 page
  154.  
  155. grSVGA_800x600x16    =     14    ; 800x600 16 color 1 page
  156. grSVGA_1024x768x16    =     15    ; 1024x768 16 color 1 page
  157. grSVGA_1280x1024x16    =     16    ; 1280x1024 16 color 1 page
  158.  
  159. grSVGA_640x350x256    =    17    ; 640x350 256 color 1 page
  160. grSVGA_640x400x256    =     18    ; 640x400 256 color 1 page
  161. grSVGA_640x480x256    =     19    ; 640x480 256 color 1 page
  162. grSVGA_800x600x256    =     20    ; 800x600 256 color 1 page
  163. grSVGA_1024x768x256    =     21    ; 1024x768 256 color 1 page
  164. grSVGA_1280x1024x256=    22    ; 1280x1024 256 color 1 page
  165.  
  166. grSVGA_320x200x32k    =    23    ; 320x200 32,768 color 1 page
  167. grSVGA_640x350x32k    =     24    ; 640x350 32,768 color 1 page
  168. grSVGA_640x400x32k    =    25    ; 640x400 32,768 color 1 page
  169. grSVGA_640x480x32k    =     26    ; 640x480 32,768 color 1 page
  170. grSVGA_800x600x32k    =     27    ; 800x600 32,768 color 1 page
  171. grSVGA_1024x768x32k    =    28    ; 1024x768 32,768 color 1 page
  172. grSVGA_1280x1024x32k=    29    ; 1280x1024 32,768 color 1 page
  173.  
  174. grSVGA_320x200x16m    =    30    ; 320x200 16 million color 1 page
  175. grSVGA_640x350x16m    =     31    ; 640x350 16 million color 1 page
  176. grSVGA_640x400x16m    =    32    ; 640x400 16 million color 1 page
  177. grSVGA_640x480x16m    =     33    ; 640x480 16 million color 1 page
  178. grSVGA_800x600x16m    =     34    ; 800x600 16 million color 1 page
  179. grSVGA_1024x768x16m    =    35    ; 1024x768 16 million color 1 page
  180. grSVGA_1280x1024x16m=    36    ; 1280x1024 16 million color 1 page
  181. grMAXMODE            =    36    ; Maximum video mode
  182.  
  183. ; GraphResult error codes.
  184.  
  185. grOK                =    0    ; No error
  186. grNoInit            =    -1    ; Graphics driver has not been installed
  187. grNotDetected        =    -2    ; Graphics hardware was not detected
  188. grFileNotFound        =    -3    ; Graphics driver file was not found
  189. grBadDriver            =    -4    ; File loaded was not a graphics driver
  190. grLoadMem            =    -5    ; Not enough memory to load graphics driver
  191. grInvalidMode        =    -6    ; Invalid graphics mode for selected driver
  192. grInvalidDriver     =    -7    ; Driver number is invalid
  193. grError                =    -8    ; General graphics error
  194. grInvalidName        =    -9    ; Invalid drive name
  195. grNoMem                =    -10    ; Not enough memory to perform operation
  196. grNotSupported        =    -11    ; Graphics card is not supported
  197. grNoModeSupport        =    -12 ; Selected video mode is not supported by hard.
  198.  
  199. ; Boolean values
  200.  
  201. true                =    1
  202. false                =    0
  203.  
  204. ; Pen styles
  205.  
  206. SOLID_PAT            =    0
  207. OPAQUE_PAT            =    1
  208. TRANSPARENT_PAT        =    2
  209. PIXMAP_PAT            =    3
  210.  
  211. ; Write modes
  212.  
  213. REPLACE_MODE        =    0
  214. AND_MODE            =    1
  215. OR_MODE                =    2
  216. XOR_MODE            =    3
  217.  
  218. ; Text drawing directions
  219.  
  220. TXT_LEFT            =    0
  221. TXT_UP                =    1
  222. TXT_RIGHT            =    2
  223. TXT_DOWN            =    3
  224.  
  225. ; Palette rotation directions
  226.  
  227. PAL_ROTATE_UP        =    0
  228. PAL_ROTATE_DOWN        =    1
  229.  
  230. ; Image header size
  231.  
  232. IMAGE_HEADER_SIZE    =    8
  233.