home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1998 #6 / amigaacscoverdisc1998-061998.iso / games / descent / source / texmap / tmap_inc.asm < prev    next >
Assembly Source File  |  1998-06-08  |  4KB  |  126 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/texmap/rcs/tmap_inc.asm $
  13. ; $Revision: 1.10 $
  14. ; $Author: john $
  15. ; $Date: 1995/02/20 18:22:52 $
  16. ;
  17. ; Mike's include file for the texture mapper library.
  18. ;
  19. ; $Log: tmap_inc.asm $
  20. ; Revision 1.10  1995/02/20  18:22:52  john
  21. ; Put all the externs in the assembly modules into tmap_inc.asm.
  22. ; Also, moved all the C versions of the inner loops into a new module, 
  23. ; scanline.c.
  24. ; Revision 1.9  1994/12/02  23:29:45  mike
  25. ; Add y_pointers.
  26. ; Revision 1.8  1994/11/12  16:39:36  mike
  27. ; jae to ja.
  28. ; Revision 1.7  1994/10/26  23:27:39  john
  29. ; Took out references to gr_inverse_table.
  30. ; Revision 1.6  1994/10/26  23:21:55  mike
  31. ; kill unused stuff.
  32. ; Revision 1.5  1994/07/27  18:39:20  john
  33. ; Took out references to blend table
  34. ; Revision 1.4  1994/01/31  15:40:17  mike
  35. ; Add window_height.
  36. ; Revision 1.3  1993/12/07  12:27:48  john
  37. ; Moved bmd_palette to gr_palette
  38. ; Revision 1.2  1993/11/22  10:24:10  mike
  39. ; *** empty log message ***
  40. ; Revision 1.1  1993/09/08  17:29:47  mike
  41. ; Initial revision
  42. ;
  43. ;
  44.  
  45. ; VESA in this file must be the same as VESA in tmap.h
  46. VESA    equ    0
  47.  
  48. direct_to_video    equ    0
  49.  
  50.   if VESA
  51.  
  52. ; for vesa mode
  53. WINDOW_LEFT    =    0
  54. WINDOW_RIGHT    =    300
  55. WINDOW_TOP    =    0
  56. WINDOW_BOTTOM    =    200
  57. WINDOW_WIDTH    =    WINDOW_RIGHT - WINDOW_LEFT
  58. BYTES_PER_ROW    =    300*2
  59.  
  60.   else
  61.  
  62. ; for non-vesa mode
  63. WINDOW_LEFT    =    58
  64. WINDOW_RIGHT    =    262
  65. WINDOW_TOP    =    34
  66. WINDOW_BOTTOM    =    167
  67. WINDOW_WIDTH    =    WINDOW_RIGHT - WINDOW_LEFT
  68. BYTES_PER_ROW    =    320        ; number of bytes between rows
  69.  
  70.   endif
  71.  
  72. ; for vesa, 15 bit color, 640x480x2
  73. SCREEN_WIDTH    =    640
  74. SCREEN_HEIGHT    =    480
  75. BYTES_PER_PIXEL    =    2
  76.  
  77.  
  78.     extrn    _gr_fade_table:byte
  79. ;NO_INVERSE_TABLE    extrn    _gr_inverse_table:byte
  80.     extrn    _write_buffer:dword
  81.     extrn    _window_left:dword,_window_right:dword,_window_top:dword,_window_bottom:dword,_window_width:dword,_bytes_per_row:dword,_window_height:dword
  82.     extrn    _y_pointers:dword
  83.  
  84. _lighting_tables    equ    _gr_fade_table
  85. ;NO_INVERSE_TABLE _rgb_to_palette    equ    _gr_inverse_table
  86. write_buffer    equ    _write_buffer
  87. ;NO_INVERSE_TABLE _pixel_average    equ     _gr_inverse_table        ; should be blend table, but i took it out -john
  88.  
  89. max_window_width    equ    320
  90. num_iters    =    max_window_width
  91.  
  92.   if num_iters and 1
  93. num_iters = num_iters + 1
  94.   endif
  95.  
  96.     extern _per2_flag:dword
  97.     extern _tmap_flat_cthru_table:dword
  98.     extern _tmap_flat_color:byte
  99.     extern _tmap_flat_shade_value:byte
  100.     extern _dither_intensity_lighting:dword
  101.     extern _Lighting_on:dword
  102.     extern _pixel_data_selector:word, _gr_fade_table_selector:word, _transparency_on:dword
  103.     extern _fx_u:dword
  104.     extern _fx_v:dword
  105.     extern _fx_z:dword
  106.     extern _fx_l:dword
  107.     extern _fx_du_dx:dword
  108.     extern _fx_dv_dx:dword
  109.     extern _fx_dz_dx:dword
  110.     extern _fx_dl_dx:dword
  111.     extern _fx_y:dword
  112.     extern _fx_xleft:dword
  113.     extern _fx_xright:dword
  114.     extern _pixptr:dword
  115. 
  116.