d_ifacea.h 2.0 KB

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