home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1998 #6 / amigaacscoverdisc1998-061998.iso / games / descent / source / 3d / globvars.asm < prev    next >
Assembly Source File  |  1998-06-08  |  2KB  |  86 lines

  1. ;THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
  2. ;SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
  3. ;END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
  4. ;ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
  5. ;IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
  6. ;SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
  7. ;FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
  8. ;CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
  9. ;AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.  
  10. ;COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
  11. ;
  12. ; $Source: f:/miner/source/3d/rcs/globvars.asm $
  13. ; $Revision: 1.6 $
  14. ; $Author: matt $
  15. ; $Date: 1994/11/19 17:25:27 $
  16. ;
  17. ; Global variables for 3d system
  18. ;
  19. ; $Log: globvars.asm $
  20. ; Revision 1.6  1994/11/19  17:25:27  matt
  21. ; Took out unneeded var define
  22. ; Revision 1.5  1994/07/25  00:00:03  matt
  23. ; Made 3d no longer deal with point numbers, but only with pointers.
  24. ; Revision 1.4  1994/01/28  15:23:23  matt
  25. ; Added _Matrix_scale so C can get at those vars
  26. ; Revision 1.3  1994/01/13  15:38:29  mike
  27. ; rename Frame_count to _Frame_count, can you guess why?
  28. ; Revision 1.2  1993/11/04  18:49:16  matt
  29. ; Added system to only rotate points once per frame
  30. ; Revision 1.1  1993/10/29  22:20:27  matt
  31. ; Initial revision
  32. ;
  33. ;
  34.  
  35. .386
  36.     option    oldstructs
  37.  
  38.     .nolist
  39.     include    types.inc
  40.     include    psmacros.inc
  41.     include    3d.inc
  42.     .list
  43.  
  44.     assume    ds:_DATA
  45.  
  46. _DATA    segment    dword public USE32 'DATA'
  47.  
  48. rcsid    db    "$Id: globvars.asm 1.6 1994/11/19 17:25:27 matt Exp $"
  49.     align    4
  50.  
  51. View_position    vms_vector <>
  52. View_zoom    fix    ?
  53.  
  54. Unscaled_matrix    vms_matrix <>    ;before scaling
  55. View_matrix    vms_matrix <>
  56.  
  57. Window_scale    vms_vector <>    ;scaling for window aspect
  58. Matrix_scale    vms_vector <>    ;how the matrix is scaled
  59.             ;window_scale * zoom
  60. Canvas_width    dd    ?    ;the actual width
  61. Canvas_height    dd    ?    ;the actual height
  62.  
  63. Canv_w2    fix    ?    ;fixed-point width/2
  64. Canv_h2    fix    ?    ;fixed-point height/2
  65.  
  66. ;vertex buffers for polygon drawing and clipping
  67. Vbuf0    dd    MAX_POINTS_IN_POLY dup (?)
  68. Vbuf1    dd    MAX_POINTS_IN_POLY dup (?)
  69.  
  70. ;list of 2d coords
  71. Vertex_list    fix    MAX_POINTS_IN_POLY*2 dup (?)
  72.  
  73. ;;;used for determining whether to rotate a frame
  74. ;;_Frame_count    dw    -1    ;first frame will inc to 0
  75.  
  76. _DATA    ends
  77.  
  78.     end
  79.  
  80.