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.
13 ; Mike's include file for the texture mapper library.
17 ; VESA in this file must be the same as VESA in tmap.h
29 WINDOW_WIDTH = WINDOW_RIGHT - WINDOW_LEFT
39 WINDOW_WIDTH = WINDOW_RIGHT - WINDOW_LEFT
40 BYTES_PER_ROW = 320 ; number of bytes between rows
44 ; for vesa, 15 bit color, 640x480x2
51 ; It appears that ELF C compilers do not prefix symbols with '_', so here we
53 %define _gr_fade_table gr_fade_table
54 %define _write_buffer write_buffer
55 %define _window_left window_left
56 %define _window_right window_right
57 %define _window_top window_top
58 %define _window_bottom window_bottom
59 %define _window_width window_width
60 %define _window_height window_height
61 %define _bytes_per_row bytes_per_row
62 %define _y_pointers y_pointers
64 %define _per2_flag per2_flag
65 %define _tmap_flat_cthru_table tmap_flat_cthru_table
66 %define _tmap_flat_color tmap_flat_color
67 %define _tmap_flat_shade_value tmap_flat_shade_value
68 %define _dither_intensity_lighting dither_intensity_lighting
69 %define _Lighting_on Lighting_on
71 %define _Transparency_on Transparency_on
76 %define _fx_du_dx fx_du_dx
77 %define _fx_dv_dx fx_dv_dx
78 %define _fx_dz_dx fx_dz_dx
79 %define _fx_dl_dx fx_dl_dx
81 %define _fx_xleft fx_xleft
82 %define _fx_xright fx_xright
83 %define _pixptr pixptr
86 extern _gr_fade_table;:byte
87 ;NO_INVERSE_TABLE extrn _gr_inverse_table:byte
88 extern _write_buffer;:dword
89 extern _window_left;:dword
90 extern _window_right;:dword
91 extern _window_top;:dword
92 extern _window_bottom;:dword,
93 extern _window_width;:dword,
94 extern _bytes_per_row;:dword,
95 extern _window_height;:dword
96 extern _y_pointers;:dword
98 ;NO_INVERSE_TABLE _rgb_to_palette equ _gr_inverse_table
99 ;NO_INVERSE_TABLE _pixel_average equ _gr_inverse_table ; should be blend table, but i took it out -john
101 max_window_width equ 800
102 num_iters equ max_window_width
105 %assign num_iters num_iters+1
107 extern _per2_flag;:dword
108 extern _tmap_flat_cthru_table;:dword
109 extern _tmap_flat_color;:byte
110 extern _tmap_flat_shade_value;:byte
111 extern _dither_intensity_lighting;:dword
112 extern _Lighting_on;:dword
114 ; DPH: Selectors are about as portable as a rock.
115 ; extern _pixel_data_selector;:word
116 ; extern _gr_fade_table_selector;:word
118 extern _Transparency_on;:dword
123 extern _fx_du_dx;:dword
124 extern _fx_dv_dx;:dword
125 extern _fx_dz_dx;:dword
126 extern _fx_dl_dx;:dword
128 extern _fx_xleft;:dword
129 extern _fx_xright;:dword
130 extern _pixptr;:dword