icculus quake2 doxygen  1.0 dev
asm_i386.h
Go to the documentation of this file.
1 
2 #ifndef __ASM_I386__
3 #define __ASM_I386__
4 
5 #ifdef ELF
6 #define C(label) label
7 #else
8 #define C(label) _##label
9 #endif
10 
11 //
12 // !!! note that this file must match the corresponding C structures at all
13 // times !!!
14 //
15 
16 // plane_t structure
17 // !!! if this is changed, it must be changed in model.h too !!!
18 // !!! if the size of this is changed, the array lookup in SV_HullPointContents
19 // must be changed too !!!
20 #define pl_normal 0
21 #define pl_dist 12
22 #define pl_type 16
23 #define pl_signbits 17
24 #define pl_pad 18
25 #define pl_size 20
26 
27 // hull_t structure
28 // !!! if this is changed, it must be changed in model.h too !!!
29 #define hu_clipnodes 0
30 #define hu_planes 4
31 #define hu_firstclipnode 8
32 #define hu_lastclipnode 12
33 #define hu_clip_mins 16
34 #define hu_clip_maxs 28
35 #define hu_size 40
36 
37 // dnode_t structure
38 // !!! if this is changed, it must be changed in bspfile.h too !!!
39 #define nd_planenum 0
40 #define nd_children 4
41 #define nd_mins 8
42 #define nd_maxs 20
43 #define nd_firstface 32
44 #define nd_numfaces 36
45 #define nd_size 40
46 
47 // sfxcache_t structure
48 // !!! if this is changed, it much be changed in sound.h too !!!
49 #define sfxc_length 0
50 #define sfxc_loopstart 4
51 #define sfxc_speed 8
52 #define sfxc_width 12
53 #define sfxc_stereo 16
54 #define sfxc_data 20
55 
56 // channel_t structure
57 // !!! if this is changed, it much be changed in sound.h too !!!
58 #define ch_sfx 0
59 #define ch_leftvol 4
60 #define ch_rightvol 8
61 #define ch_end 12
62 #define ch_pos 16
63 #define ch_looping 20
64 #define ch_entnum 24
65 #define ch_entchannel 28
66 #define ch_origin 32
67 #define ch_dist_mult 44
68 #define ch_master_vol 48
69 #define ch_size 52
70 
71 // portable_samplepair_t structure
72 // !!! if this is changed, it much be changed in sound.h too !!!
73 #define psp_left 0
74 #define psp_right 4
75 #define psp_size 8
76 
77 // !!! must be kept the same as in d_iface.h !!!
78 #define TRANSPARENT_COLOR 255
79 
80 #endif
81