icculus quake2 doxygen  1.0 dev
d_ifacea.h
Go to the documentation of this file.
1 //
2 // d_ifacea.h
3 //
4 // Include file for asm driver interface.
5 //
6 
7 //
8 // !!! note that this file must match the corresponding C structures in
9 // d_iface.h at all times !!!
10 //
11 
12 // !!! if this is changed, it must be changed in d_iface.h too !!!
13 #define TURB_TEX_SIZE 64 // base turbulent texture size
14 
15 // !!! if this is changed, it must be changed in d_iface.h too !!!
16 #define CYCLE 128
17 
18 // !!! if this is changed, it must be changed in r_shared.h too !!!
19 #define MAXHEIGHT 1200
20 
21 // !!! if this is changed, it must be changed in qcommon.h too !!!
22 #define CACHE_SIZE 32 // used to align key data structures
23 
24 // particle_t structure
25 // !!! if this is changed, it must be changed in d_iface.h too !!!
26 // driver-usable fields
27 #define pt_org 0
28 #define pt_color 12
29 // drivers never touch the following fields
30 #define pt_next 16
31 #define pt_vel 20
32 #define pt_ramp 32
33 #define pt_die 36
34 #define pt_type 40
35 #define pt_size 44
36 
37 #define PARTICLE_Z_CLIP 8.0
38 
39 // finalvert_t structure
40 // !!! if this is changed, it must be changed in d_iface.h too !!!
41 #define fv_v 0 // !!! if this is moved, cases where the !!!
42  // !!! address of this field is pushed in !!!
43  // !!! d_polysa.s must be changed !!!
44 #define fv_flags 24
45 #define fv_reserved 28
46 #define fv_size 32
47 #define fv_shift 5
48 
49 
50 // stvert_t structure
51 // !!! if this is changed, it must be changed in modelgen.h too !!!
52 #define stv_onseam 0
53 #define stv_s 4
54 #define stv_t 8
55 #define stv_size 12
56 
57 
58 // trivertx_t structure
59 // !!! if this is changed, it must be changed in modelgen.h too !!!
60 #define tv_v 0
61 #define tv_lightnormalindex 3
62 #define tv_size 4
63 
64 // affinetridesc_t structure
65 // !!! if this is changed, it must be changed in d_iface.h too !!!
66 #define atd_pskin 0
67 #define atd_pskindesc 4
68 #define atd_skinwidth 8
69 #define atd_skinheight 12
70 #define atd_ptriangles 16
71 #define atd_pfinalverts 20
72 #define atd_numtriangles 24
73 #define atd_drawtype 28
74 #define atd_seamfixupX16 32
75 #define atd_size 36
76