quakeasm.h 6.2 KB

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