home *** CD-ROM | disk | FTP | other *** search
/ Virtual Reality Homebrewer's Handbook / vr.iso / vr386 / viewdata.inc < prev    next >
Text File  |  1996-03-19  |  6KB  |  218 lines

  1. ; by Dave Stampe, 19/12/93
  2. ; the DATA segment stuff pulled out of the viewport
  3. ; for fast, easy access during rendering
  4.  
  5.  
  6.  
  7.         IFDEF create_data
  8.  
  9.  
  10. _VS_sfac1     dd ?    ; scaled world->camera matrix rotational elements
  11. _VS_sfac2     dd ?    ; containig screen dimension and zoom factors
  12. _VS_sfac3    dd ?
  13. _VS_sfac4     dd ?
  14. _VS_sfac5     dd ?
  15. _VS_sfac6     dd ?
  16. _VS_sfac7     dd ?
  17. _VS_sfac8     dd ?
  18. _VS_sfac9     dd ?
  19.  
  20. _VS_fact1    dd ?    ; scaled world->camera matrix rotational elements
  21. _VS_fact2    dd ?    ; no scaling for screen dimensions
  22. _VS_fact3    dd ?
  23. _VS_fact4    dd ?
  24. _VS_fact5    dd ?
  25. _VS_fact6    dd ?
  26. _VS_fact7    dd ?
  27. _VS_fact8    dd ?
  28. _VS_fact9    dd ?
  29.  
  30. _VS_iview_x    dd ?    ; the camera viewpoint position in the world
  31. _VS_iview_y    dd ?
  32. _VS_iview_z    dd ?
  33.  
  34. _VS_hither    dd ?    ; viewport window edges
  35. _VS_yon        dd ?
  36. _VS_left    dd ?
  37. _VS_right    dd ?
  38. _VS_top    dd ?
  39. _VS_bottom    dd ?
  40.  
  41. _VS_orientation    dw ?    ; mirroring flags
  42.  
  43. _VS_view_flags    dw ?
  44.  
  45. _VS_hither4    dd ?    ; prescaled viewport window edges
  46. _VS_yon4    dd ?
  47. _VS_left4    dd ?
  48. _VS_right4    dd ?
  49. _VS_top4    dd ?
  50. _VS_bottom4    dd ?
  51.  
  52. _VS_left_C    dd ?    ; object clipping view volume: slopes of sides
  53. _VS_left_M    dd ?
  54. _VS_right_C    dd ?
  55. _VS_right_M    dd ?
  56. _VS_top_C    dd ?
  57. _VS_top_M    dd ?
  58. _VS_bot_C      dd ?
  59. _VS_bot_M      dd ?
  60.  
  61. _VS_hsw     dd ?    ; half screen width
  62. _VS_hsh     dd ?    ; half screen height
  63.  
  64. _VS_hsc     dd ?    ; offset h screen center (prescaled)
  65. _VS_vsc     dd ?    ; offset v screen center (prescaled)
  66.  
  67. _VS_scx     dd ?    ; records absolute X,Y scaling of screen size
  68. _VS_scy     dd ?
  69.  
  70. _VS_xshift    dw ?    ; shift for X of screen scaling
  71. _VS_yshift    dw ?    ; shift for Y of screen scaling
  72.  
  73. _VS_sx         dd ?    ; mantissa for X of screen scaling
  74. _VS_sy        dd ?    ; mantissa for Y of screen scaling
  75.  
  76.  
  77. PUBLIC     _VS_fact1        ; unscaled world->camera matrix rotational elements
  78. PUBLIC     _VS_fact2        ; no scaling for screen dimensions
  79. PUBLIC     _VS_fact3
  80. PUBLIC     _VS_fact4
  81. PUBLIC     _VS_fact5
  82. PUBLIC     _VS_fact6
  83. PUBLIC     _VS_fact7
  84. PUBLIC     _VS_fact8
  85. PUBLIC     _VS_fact9
  86.  
  87. PUBLIC     _VS_sfac1         ; scaled world->camera matrix rotational elements
  88. PUBLIC     _VS_sfac2         ; containig screen dimension and zoom factors
  89. PUBLIC     _VS_sfac3
  90. PUBLIC     _VS_sfac4
  91. PUBLIC     _VS_sfac5
  92. PUBLIC     _VS_sfac6
  93. PUBLIC     _VS_sfac7
  94. PUBLIC     _VS_sfac8
  95. PUBLIC     _VS_sfac9
  96.  
  97. PUBLIC     _VS_iview_x     ; the camera viewpoint position in the world
  98. PUBLIC     _VS_iview_y
  99. PUBLIC     _VS_iview_z
  100.  
  101. PUBLIC     _VS_hither         ; viewport window edges
  102. PUBLIC     _VS_yon
  103. PUBLIC     _VS_left
  104. PUBLIC     _VS_right
  105. PUBLIC     _VS_top
  106. PUBLIC     _VS_bottom
  107.  
  108. PUBLIC     _VS_orientation       ; mirroring flags
  109.  
  110. PUBLIC     _VS_view_flags       ; flags for render control
  111.  
  112. PUBLIC     _VS_hither4     ; prescaled viewport window edges
  113. PUBLIC     _VS_yon4
  114. PUBLIC     _VS_left4
  115. PUBLIC     _VS_right4
  116. PUBLIC     _VS_top4
  117. PUBLIC     _VS_bottom4
  118.  
  119. PUBLIC     _VS_left_C         ; object clipping view volume: slopes of sides
  120. PUBLIC     _VS_left_M
  121. PUBLIC     _VS_right_C
  122. PUBLIC     _VS_right_M
  123. PUBLIC     _VS_top_C
  124. PUBLIC     _VS_top_M
  125. PUBLIC     _VS_bot_C
  126. PUBLIC     _VS_bot_M
  127.  
  128. PUBLIC     _VS_hsw     ; half screen width
  129. PUBLIC     _VS_hsh     ; half screen height
  130. PUBLIC
  131. PUBLIC     _VS_hsc     ; offset h screen center (prescaled)
  132. PUBLIC     _VS_vsc     ; offset v screen center (prescaled)
  133.  
  134. PUBLIC     _VS_scx     ; records absolute X,Y scaling of screen size
  135. PUBLIC     _VS_scy
  136.  
  137. PUBLIC     _VS_xshift    ; shift for X of screen scaling
  138. PUBLIC     _VS_yshift    ; shift for Y of screen scaling
  139.  
  140. PUBLIC     _VS_sx     ; mantissa for X of screen scaling
  141. PUBLIC     _VS_sy     ; mantissa for Y of screen scaling
  142.  
  143.     ENDIF
  144.  
  145.     IFNDEF create_data
  146.  
  147.  
  148. extrn     _VS_fact1:DWORD       ; unscaled world->camera matrix rotational elements
  149. extrn     _VS_fact2:DWORD       ; no scaling for screen dimensions
  150. extrn     _VS_fact3:DWORD
  151. extrn     _VS_fact4:DWORD
  152. extrn     _VS_fact5:DWORD
  153. extrn     _VS_fact6:DWORD
  154. extrn     _VS_fact7:DWORD
  155. extrn     _VS_fact8:DWORD
  156. extrn     _VS_fact9:DWORD
  157.  
  158. extrn     _VS_sfac1:DWORD        ; scaled world->camera matrix rotational elements
  159. extrn     _VS_sfac2:DWORD        ; containig screen dimension and zoom factors
  160. extrn     _VS_sfac3:DWORD
  161. extrn     _VS_sfac4:DWORD
  162. extrn     _VS_sfac5:DWORD
  163. extrn     _VS_sfac6:DWORD
  164. extrn     _VS_sfac7:DWORD
  165. extrn     _VS_sfac8:DWORD
  166. extrn     _VS_sfac9:DWORD
  167.  
  168. extrn     _VS_iview_x:DWORD    ; the camera viewpoint position in the world
  169. extrn     _VS_iview_y:DWORD
  170. extrn     _VS_iview_z:DWORD
  171.  
  172. extrn     _VS_hither:DWORD        ; viewport window edges
  173. extrn     _VS_yon:DWORD
  174. extrn     _VS_left:DWORD
  175. extrn     _VS_right:DWORD
  176. extrn     _VS_top:DWORD
  177. extrn     _VS_bottom:DWORD
  178.  
  179. extrn     _VS_orientation:WORD    ; mirroring flags
  180.  
  181. extrn     _VS_view_flags:WORD    ; flags for render control
  182.  
  183. extrn     _VS_hither4:DWORD    ; prescaled viewport window edges
  184. extrn     _VS_yon4:DWORD
  185. extrn     _VS_left4:DWORD
  186. extrn     _VS_right4:DWORD
  187. extrn     _VS_top4:DWORD
  188. extrn     _VS_bottom4:DWORD
  189.  
  190. extrn     _VS_left_C:DWORD        ; object clipping view volume: slopes of sides
  191. extrn     _VS_left_M:DWORD
  192. extrn     _VS_right_C:DWORD
  193. extrn     _VS_right_M:DWORD
  194. extrn     _VS_top_C:DWORD
  195. extrn     _VS_top_M:DWORD
  196. extrn     _VS_bot_C:DWORD
  197. extrn     _VS_bot_M:DWORD
  198.  
  199. extrn     _VS_hsw:DWORD    ; half screen width
  200. extrn     _VS_hsh:DWORD    ; half screen height
  201. extrn
  202. extrn     _VS_hsc:DWORD    ; offset h screen center (prescaled)
  203. extrn     _VS_vsc:DWORD    ; offset v screen center (prescaled)
  204.  
  205. extrn     _VS_scx:DWORD    ; records absolute X,Y scaling of screen size
  206. extrn     _VS_scy:DWORD
  207.  
  208. extrn     _VS_xshift:WORD    ; shift for X of screen scaling
  209. extrn     _VS_yshift:WORD    ; shift for Y of screen scaling
  210.  
  211. extrn     _VS_sx:DWORD    ; mantissa for X of screen scaling
  212. extrn     _VS_sy:DWORD    ; mantissa for Y of screen scaling
  213.  
  214.  
  215.         ENDIF
  216.  
  217.  
  218.