d_if.inc 1.9 KB

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