quakeasm.h 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. /*
  2. Copyright (C) 1996-1997 Id Software, Inc.
  3. This program is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU General Public License
  5. as published by the Free Software Foundation; either version 2
  6. of the License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. See the GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  14. */
  15. //
  16. // quakeasm.h: general asm header file
  17. //
  18. #ifdef _WIN32
  19. #define __i386__ 1
  20. #endif
  21. #ifdef __i386__
  22. #define id386 1
  23. #else
  24. #define id386 0
  25. #endif
  26. // !!! must be kept the same as in d_iface.h !!!
  27. #define TRANSPARENT_COLOR 255
  28. #ifndef NeXT
  29. #ifndef GLQUAKE
  30. .extern C(d_zistepu)
  31. .extern C(d_pzbuffer)
  32. .extern C(d_zistepv)
  33. .extern C(d_zrowbytes)
  34. .extern C(d_ziorigin)
  35. .extern C(r_turb_s)
  36. .extern C(r_turb_t)
  37. .extern C(r_turb_pdest)
  38. .extern C(r_turb_spancount)
  39. .extern C(r_turb_turb)
  40. .extern C(r_turb_pbase)
  41. .extern C(r_turb_sstep)
  42. .extern C(r_turb_tstep)
  43. .extern C(r_bmodelactive)
  44. .extern C(d_sdivzstepu)
  45. .extern C(d_tdivzstepu)
  46. .extern C(d_sdivzstepv)
  47. .extern C(d_tdivzstepv)
  48. .extern C(d_sdivzorigin)
  49. .extern C(d_tdivzorigin)
  50. .extern C(sadjust)
  51. .extern C(tadjust)
  52. .extern C(bbextents)
  53. .extern C(bbextentt)
  54. .extern C(cacheblock)
  55. .extern C(d_viewbuffer)
  56. .extern C(cachewidth)
  57. .extern C(d_pzbuffer)
  58. .extern C(d_zrowbytes)
  59. .extern C(d_zwidth)
  60. .extern C(d_scantable)
  61. .extern C(r_lightptr)
  62. .extern C(r_numvblocks)
  63. .extern C(prowdestbase)
  64. .extern C(pbasesource)
  65. .extern C(r_lightwidth)
  66. .extern C(lightright)
  67. .extern C(lightrightstep)
  68. .extern C(lightdeltastep)
  69. .extern C(lightdelta)
  70. .extern C(lightright)
  71. .extern C(lightdelta)
  72. .extern C(sourcetstep)
  73. .extern C(surfrowbytes)
  74. .extern C(lightrightstep)
  75. .extern C(lightdeltastep)
  76. .extern C(r_sourcemax)
  77. .extern C(r_stepback)
  78. .extern C(colormap)
  79. .extern C(blocksize)
  80. .extern C(sourcesstep)
  81. .extern C(lightleft)
  82. .extern C(blockdivshift)
  83. .extern C(blockdivmask)
  84. .extern C(lightleftstep)
  85. .extern C(r_origin)
  86. .extern C(r_ppn)
  87. .extern C(r_pup)
  88. .extern C(r_pright)
  89. .extern C(ycenter)
  90. .extern C(xcenter)
  91. .extern C(d_vrectbottom_particle)
  92. .extern C(d_vrectright_particle)
  93. .extern C(d_vrecty)
  94. .extern C(d_vrectx)
  95. .extern C(d_pix_shift)
  96. .extern C(d_pix_min)
  97. .extern C(d_pix_max)
  98. .extern C(d_y_aspect_shift)
  99. .extern C(screenwidth)
  100. .extern C(r_leftclipped)
  101. .extern C(r_leftenter)
  102. .extern C(r_rightclipped)
  103. .extern C(r_rightenter)
  104. .extern C(modelorg)
  105. .extern C(xscale)
  106. .extern C(r_refdef)
  107. .extern C(yscale)
  108. .extern C(r_leftexit)
  109. .extern C(r_rightexit)
  110. .extern C(r_lastvertvalid)
  111. .extern C(cacheoffset)
  112. .extern C(newedges)
  113. .extern C(removeedges)
  114. .extern C(r_pedge)
  115. .extern C(r_framecount)
  116. .extern C(r_u1)
  117. .extern C(r_emitted)
  118. .extern C(edge_p)
  119. .extern C(surface_p)
  120. .extern C(surfaces)
  121. .extern C(r_lzi1)
  122. .extern C(r_v1)
  123. .extern C(r_ceilv1)
  124. .extern C(r_nearzi)
  125. .extern C(r_nearzionly)
  126. .extern C(edge_aftertail)
  127. .extern C(edge_tail)
  128. .extern C(current_iv)
  129. .extern C(edge_head_u_shift20)
  130. .extern C(span_p)
  131. .extern C(edge_head)
  132. .extern C(fv)
  133. .extern C(edge_tail_u_shift20)
  134. .extern C(r_apverts)
  135. .extern C(r_anumverts)
  136. .extern C(aliastransform)
  137. .extern C(r_avertexnormals)
  138. .extern C(r_plightvec)
  139. .extern C(r_ambientlight)
  140. .extern C(r_shadelight)
  141. .extern C(aliasxcenter)
  142. .extern C(aliasycenter)
  143. .extern C(a_sstepxfrac)
  144. .extern C(r_affinetridesc)
  145. .extern C(acolormap)
  146. .extern C(d_pcolormap)
  147. .extern C(r_affinetridesc)
  148. .extern C(d_sfrac)
  149. .extern C(d_ptex)
  150. .extern C(d_pedgespanpackage)
  151. .extern C(d_tfrac)
  152. .extern C(d_light)
  153. .extern C(d_zi)
  154. .extern C(d_pdest)
  155. .extern C(d_pz)
  156. .extern C(d_aspancount)
  157. .extern C(erroradjustup)
  158. .extern C(errorterm)
  159. .extern C(d_xdenom)
  160. .extern C(r_p0)
  161. .extern C(r_p1)
  162. .extern C(r_p2)
  163. .extern C(a_tstepxfrac)
  164. .extern C(r_sstepx)
  165. .extern C(r_tstepx)
  166. .extern C(a_ststepxwhole)
  167. .extern C(zspantable)
  168. .extern C(skintable)
  169. .extern C(r_zistepx)
  170. .extern C(erroradjustdown)
  171. .extern C(d_countextrastep)
  172. .extern C(ubasestep)
  173. .extern C(a_ststepxwhole)
  174. .extern C(a_tstepxfrac)
  175. .extern C(r_lstepx)
  176. .extern C(a_spans)
  177. .extern C(erroradjustdown)
  178. .extern C(d_pdestextrastep)
  179. .extern C(d_pzextrastep)
  180. .extern C(d_sfracextrastep)
  181. .extern C(d_ptexextrastep)
  182. .extern C(d_countextrastep)
  183. .extern C(d_tfracextrastep)
  184. .extern C(d_lightextrastep)
  185. .extern C(d_ziextrastep)
  186. .extern C(d_pdestbasestep)
  187. .extern C(d_pzbasestep)
  188. .extern C(d_sfracbasestep)
  189. .extern C(d_ptexbasestep)
  190. .extern C(ubasestep)
  191. .extern C(d_tfracbasestep)
  192. .extern C(d_lightbasestep)
  193. .extern C(d_zibasestep)
  194. .extern C(zspantable)
  195. .extern C(r_lstepy)
  196. .extern C(r_sstepy)
  197. .extern C(r_tstepy)
  198. .extern C(r_zistepy)
  199. .extern C(D_PolysetSetEdgeTable)
  200. .extern C(D_RasterizeAliasPolySmooth)
  201. .extern float_point5
  202. .extern Float2ToThe31nd
  203. .extern izistep
  204. .extern izi
  205. .extern FloatMinus2ToThe31nd
  206. .extern float_1
  207. .extern float_particle_z_clip
  208. .extern float_minus_1
  209. .extern float_0
  210. .extern fp_16
  211. .extern fp_64k
  212. .extern fp_1m
  213. .extern fp_1m_minus_1
  214. .extern fp_8
  215. .extern entryvec_table
  216. .extern advancetable
  217. .extern sstep
  218. .extern tstep
  219. .extern pspantemp
  220. .extern counttemp
  221. .extern jumptemp
  222. .extern reciprocal_table
  223. .extern DP_Count
  224. .extern DP_u
  225. .extern DP_v
  226. .extern DP_32768
  227. .extern DP_Color
  228. .extern DP_Pix
  229. .extern DP_EntryTable
  230. .extern pbase
  231. .extern s
  232. .extern t
  233. .extern sfracf
  234. .extern tfracf
  235. .extern snext
  236. .extern tnext
  237. .extern spancountminus1
  238. .extern zi16stepu
  239. .extern sdivz16stepu
  240. .extern tdivz16stepu
  241. .extern zi8stepu
  242. .extern sdivz8stepu
  243. .extern tdivz8stepu
  244. .extern reciprocal_table_16
  245. .extern entryvec_table_16
  246. .extern ceil_cw
  247. .extern single_cw
  248. .extern fp_64kx64k
  249. .extern pz
  250. .extern spr8entryvec_table
  251. #endif
  252. .extern C(snd_scaletable)
  253. .extern C(paintbuffer)
  254. .extern C(snd_linear_count)
  255. .extern C(snd_p)
  256. .extern C(snd_vol)
  257. .extern C(snd_out)
  258. .extern C(vright)
  259. .extern C(vup)
  260. .extern C(vpn)
  261. .extern C(BOPS_Error)
  262. #endif