source: golgotha/src/render/software/r1_software_globals.hh @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 12 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 2.4 KB
Line 
1/********************************************************************** <BR>
2  This file is part of Crack dot Com's free source code release of
3  Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
4  information about compiling & licensing issues visit this URL</a>
5  <PRE> If that doesn't help, contact Jonathan Clark at
6  golgotha_source@usa.net (Subject should have "GOLG" in it)
7***********************************************************************/
8
9#ifndef R1_SOFTWARE_GLOBALS
10#define R1_SOFTWARE_GLOBALS
11
12extern i4_bool r1_software_render_buffer_is_locked;
13extern w16 *r1_software_render_buffer_ptr;
14extern w8   r1_software_render_expand_type;
15extern sw32 r1_software_render_buffer_bpl;
16extern sw32 r1_software_render_buffer_wpl;
17extern sw32 r1_software_render_buffer_height;
18
19extern IDirectDrawSurface3 *r1_software_render_surface;
20
21extern w16 *r1_software_texture_ptr;
22extern w8   r1_software_twidth_log2;
23extern sw32 r1_software_texture_width; 
24extern sw32 r1_software_texture_height;
25
26//for the ASM and C texturemappers
27
28extern float left_z;
29extern sw32  left_s;
30extern sw32  left_t;
31extern sw32  left_l;
32
33extern float right_z;
34extern sw32  right_s;
35extern sw32  right_t;
36
37extern sw32 s_t_carry[2];
38extern sw32 dldx_fixed;
39
40extern sw32 dsdx_frac,dtdx_frac;
41extern sw32 temp_dsdx,temp_dtdx;
42
43extern sw32 s_mask;// = ((r1_software_texture_width -1)<<16) | 0xFFFF;
44extern sw32 t_mask;// = ((r1_software_texture_height-1)<<16) | 0xFFFF;
45
46extern float ooz_right;
47extern float soz_right;
48extern float toz_right;
49
50//for blending scanline functions
51extern w32   pre_blend_and;
52extern w32   post_blend_and;
53
54extern sw32  width_global;
55extern sw32  num_subdivisions;
56extern sw32  num_leftover;
57
58void inverse_leftover_lookup_init();
59extern float inverse_leftover_lookup[];
60
61extern tri_gradients cur_grads;
62
63extern w16 alpha_table[];
64
65extern software_line software_lines[];
66extern sw32          num_buffered_lines;
67
68enum {max_soft_lines = 1024};
69
70extern tri_area_struct triangle_info[];
71extern float total_poly_area;
72
73extern w8 small_poly_type;
74extern w8 big_poly_type;
75
76//fpu control word storage (used in inline_fpu.hh)
77extern w16 old_ceil_word;
78extern w16 new_ceil_word;
79
80extern w16 old_trunc_word;
81extern w16 new_trunc_word;
82
83extern w16 old_single_word;
84extern w16 new_single_word;
85
86extern i4_bool do_amd3d;
87
88#endif
Note: See TracBrowser for help on using the repository browser.