home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 16
/
CD_ASCQ_16_0994.iso
/
news
/
vr386
/
renderer
/
viewdata.inc
< prev
next >
Wrap
Text File
|
1993-12-20
|
6KB
|
218 lines
; by Dave Stampe, 19/12/93
; the DATA segment stuff pulled out of the viewport
; for fast, easy access during rendering
IFDEF create_data
_VS_sfac1 dd ? ; scaled world->camera matrix rotational elements
_VS_sfac2 dd ? ; containig screen dimension and zoom factors
_VS_sfac3 dd ?
_VS_sfac4 dd ?
_VS_sfac5 dd ?
_VS_sfac6 dd ?
_VS_sfac7 dd ?
_VS_sfac8 dd ?
_VS_sfac9 dd ?
_VS_fact1 dd ? ; scaled world->camera matrix rotational elements
_VS_fact2 dd ? ; no scaling for screen dimensions
_VS_fact3 dd ?
_VS_fact4 dd ?
_VS_fact5 dd ?
_VS_fact6 dd ?
_VS_fact7 dd ?
_VS_fact8 dd ?
_VS_fact9 dd ?
_VS_iview_x dd ? ; the camera viewpoint position in the world
_VS_iview_y dd ?
_VS_iview_z dd ?
_VS_hither dd ? ; viewport window edges
_VS_yon dd ?
_VS_left dd ?
_VS_right dd ?
_VS_top dd ?
_VS_bottom dd ?
_VS_orientation dw ? ; mirroring flags
_VS_view_flags dw ?
_VS_hither4 dd ? ; prescaled viewport window edges
_VS_yon4 dd ?
_VS_left4 dd ?
_VS_right4 dd ?
_VS_top4 dd ?
_VS_bottom4 dd ?
_VS_left_C dd ? ; object clipping view volume: slopes of sides
_VS_left_M dd ?
_VS_right_C dd ?
_VS_right_M dd ?
_VS_top_C dd ?
_VS_top_M dd ?
_VS_bot_C dd ?
_VS_bot_M dd ?
_VS_hsw dd ? ; half screen width
_VS_hsh dd ? ; half screen height
_VS_hsc dd ? ; offset h screen center (prescaled)
_VS_vsc dd ? ; offset v screen center (prescaled)
_VS_scx dd ? ; records absolute X,Y scaling of screen size
_VS_scy dd ?
_VS_xshift dw ? ; shift for X of screen scaling
_VS_yshift dw ? ; shift for Y of screen scaling
_VS_sx dd ? ; mantissa for X of screen scaling
_VS_sy dd ? ; mantissa for Y of screen scaling
PUBLIC _VS_fact1 ; unscaled world->camera matrix rotational elements
PUBLIC _VS_fact2 ; no scaling for screen dimensions
PUBLIC _VS_fact3
PUBLIC _VS_fact4
PUBLIC _VS_fact5
PUBLIC _VS_fact6
PUBLIC _VS_fact7
PUBLIC _VS_fact8
PUBLIC _VS_fact9
PUBLIC _VS_sfac1 ; scaled world->camera matrix rotational elements
PUBLIC _VS_sfac2 ; containig screen dimension and zoom factors
PUBLIC _VS_sfac3
PUBLIC _VS_sfac4
PUBLIC _VS_sfac5
PUBLIC _VS_sfac6
PUBLIC _VS_sfac7
PUBLIC _VS_sfac8
PUBLIC _VS_sfac9
PUBLIC _VS_iview_x ; the camera viewpoint position in the world
PUBLIC _VS_iview_y
PUBLIC _VS_iview_z
PUBLIC _VS_hither ; viewport window edges
PUBLIC _VS_yon
PUBLIC _VS_left
PUBLIC _VS_right
PUBLIC _VS_top
PUBLIC _VS_bottom
PUBLIC _VS_orientation ; mirroring flags
PUBLIC _VS_view_flags ; flags for render control
PUBLIC _VS_hither4 ; prescaled viewport window edges
PUBLIC _VS_yon4
PUBLIC _VS_left4
PUBLIC _VS_right4
PUBLIC _VS_top4
PUBLIC _VS_bottom4
PUBLIC _VS_left_C ; object clipping view volume: slopes of sides
PUBLIC _VS_left_M
PUBLIC _VS_right_C
PUBLIC _VS_right_M
PUBLIC _VS_top_C
PUBLIC _VS_top_M
PUBLIC _VS_bot_C
PUBLIC _VS_bot_M
PUBLIC _VS_hsw ; half screen width
PUBLIC _VS_hsh ; half screen height
PUBLIC
PUBLIC _VS_hsc ; offset h screen center (prescaled)
PUBLIC _VS_vsc ; offset v screen center (prescaled)
PUBLIC _VS_scx ; records absolute X,Y scaling of screen size
PUBLIC _VS_scy
PUBLIC _VS_xshift ; shift for X of screen scaling
PUBLIC _VS_yshift ; shift for Y of screen scaling
PUBLIC _VS_sx ; mantissa for X of screen scaling
PUBLIC _VS_sy ; mantissa for Y of screen scaling
ENDIF
IFNDEF create_data
extrn _VS_fact1:DWORD ; unscaled world->camera matrix rotational elements
extrn _VS_fact2:DWORD ; no scaling for screen dimensions
extrn _VS_fact3:DWORD
extrn _VS_fact4:DWORD
extrn _VS_fact5:DWORD
extrn _VS_fact6:DWORD
extrn _VS_fact7:DWORD
extrn _VS_fact8:DWORD
extrn _VS_fact9:DWORD
extrn _VS_sfac1:DWORD ; scaled world->camera matrix rotational elements
extrn _VS_sfac2:DWORD ; containig screen dimension and zoom factors
extrn _VS_sfac3:DWORD
extrn _VS_sfac4:DWORD
extrn _VS_sfac5:DWORD
extrn _VS_sfac6:DWORD
extrn _VS_sfac7:DWORD
extrn _VS_sfac8:DWORD
extrn _VS_sfac9:DWORD
extrn _VS_iview_x:DWORD ; the camera viewpoint position in the world
extrn _VS_iview_y:DWORD
extrn _VS_iview_z:DWORD
extrn _VS_hither:DWORD ; viewport window edges
extrn _VS_yon:DWORD
extrn _VS_left:DWORD
extrn _VS_right:DWORD
extrn _VS_top:DWORD
extrn _VS_bottom:DWORD
extrn _VS_orientation:WORD ; mirroring flags
extrn _VS_view_flags:WORD ; flags for render control
extrn _VS_hither4:DWORD ; prescaled viewport window edges
extrn _VS_yon4:DWORD
extrn _VS_left4:DWORD
extrn _VS_right4:DWORD
extrn _VS_top4:DWORD
extrn _VS_bottom4:DWORD
extrn _VS_left_C:DWORD ; object clipping view volume: slopes of sides
extrn _VS_left_M:DWORD
extrn _VS_right_C:DWORD
extrn _VS_right_M:DWORD
extrn _VS_top_C:DWORD
extrn _VS_top_M:DWORD
extrn _VS_bot_C:DWORD
extrn _VS_bot_M:DWORD
extrn _VS_hsw:DWORD ; half screen width
extrn _VS_hsh:DWORD ; half screen height
extrn
extrn _VS_hsc:DWORD ; offset h screen center (prescaled)
extrn _VS_vsc:DWORD ; offset v screen center (prescaled)
extrn _VS_scx:DWORD ; records absolute X,Y scaling of screen size
extrn _VS_scy:DWORD
extrn _VS_xshift:WORD ; shift for X of screen scaling
extrn _VS_yshift:WORD ; shift for Y of screen scaling
extrn _VS_sx:DWORD ; mantissa for X of screen scaling
extrn _VS_sy:DWORD ; mantissa for Y of screen scaling
ENDIF