Quake-2

Quake 2 GPL Source Release
Log | Files | Refs

d_ifacea.h (2098B)


      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 r_shared.h too !!!
     13 #define ALIAS_ONSEAM				0x0020
     14 
     15 // !!! if this is changed, it must be changed in d_iface.h too !!!
     16 #define TURB_TEX_SIZE	64		// base turbulent texture size
     17 
     18 // !!! if this is changed, it must be changed in d_iface.h too !!!
     19 #define	CYCLE	128
     20 
     21 // !!! if this is changed, it must be changed in r_shared.h too !!!
     22 #define	MAXHEIGHT	1024
     23 
     24 // !!! if this is changed, it must be changed in quakedef.h too !!!
     25 #define CACHE_SIZE	32		// used to align key data structures
     26 
     27 // particle_t structure
     28 // !!! if this is changed, it must be changed in d_iface.h too !!!
     29 // driver-usable fields
     30 #define pt_org				0
     31 #define pt_color			12
     32 // drivers never touch the following fields
     33 #define pt_next				16
     34 #define pt_vel				20
     35 #define pt_ramp				32
     36 #define pt_die				36
     37 #define pt_type				40
     38 #define pt_size				44
     39 
     40 #define PARTICLE_Z_CLIP	8.0
     41 
     42 // finalvert_t structure
     43 // !!! if this is changed, it must be changed in d_iface.h too !!!
     44 #define fv_v				0	// !!! if this is moved, cases where the !!!
     45 								// !!! address of this field is pushed in !!!
     46 								// !!! d_polysa.s must be changed !!!
     47 #define fv_flags			24
     48 #define fv_reserved			28
     49 #define fv_size				32
     50 #define fv_shift			5
     51 
     52 
     53 // stvert_t structure
     54 // !!! if this is changed, it must be changed in modelgen.h too !!!
     55 #define stv_onseam	0
     56 #define stv_s		4
     57 #define stv_t		8
     58 #define stv_size	12
     59 
     60 
     61 // trivertx_t structure
     62 // !!! if this is changed, it must be changed in modelgen.h too !!!
     63 #define tv_v				0
     64 #define tv_lightnormalindex	3
     65 #define tv_size				4
     66 
     67 // affinetridesc_t structure
     68 // !!! if this is changed, it must be changed in d_iface.h too !!!
     69 #define atd_pskin			0
     70 #define atd_pskindesc		4
     71 #define atd_skinwidth		8
     72 #define atd_skinheight		12
     73 #define atd_ptriangles		16
     74 #define atd_pfinalverts		20
     75 #define atd_numtriangles	24
     76 #define atd_drawtype		28
     77 #define atd_seamfixupX16	32
     78 #define atd_size			36
     79