asm_i386.h 1.8 KB

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