Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

993 lines
18 KiB

  1. ;---------------------------Module-Header------------------------------;
  2. ; Module Name: texspans.asm
  3. ;
  4. ; Generator file for texture routines.
  5. ;
  6. ; Created: 011/15/1995
  7. ; Author: Otto Berkes [ottob]
  8. ;
  9. ; Copyright (c) 1995 Microsoft Corporation
  10. ;----------------------------------------------------------------------;
  11. .386
  12. .model small,pascal
  13. assume cs:FLAT,ds:FLAT,es:FLAT,ss:FLAT
  14. assume fs:nothing,gs:nothing
  15. .xlist
  16. include gli386.inc
  17. .list
  18. PROFILE = 0
  19. include profile.inc
  20. .data
  21. extrn _gbMulTable:BYTE
  22. __One dd __FLOAT_ONE
  23. dither0 dd 0a8288808h
  24. dither1 dd 068e848c8h
  25. dither2 dd 09818b838h
  26. dither3 dd 058d878f8h
  27. rBits = 3
  28. gBits = 3
  29. bBits = 2
  30. rShift = 0
  31. gShift = 3
  32. bShift = 6
  33. FAST_REPLACE = 0
  34. REPLACE = 0
  35. FLAT_SHADING = 0
  36. SMOOTH_SHADING = 0
  37. ALPHA = 0
  38. ZBUFFER = 0
  39. ZCMP_L = 0
  40. .code
  41. PROCSTART MACRO base, subset
  42. public @&base&subset&@4
  43. @&base&subset&@4 PROC
  44. PROF_ENTRY
  45. ENDM
  46. PROCEND MACRO base, subset
  47. @&base&subset&@4 ENDP
  48. ENDM
  49. PALETTE_ENABLED = 0
  50. PALETTE_ONLY = 0
  51. ;;----------------------------------------------------------------------
  52. ;;
  53. ;; FAST REPLACE MODES
  54. ;;
  55. ;;----------------------------------------------------------------------
  56. FAST_REPLACE = 1
  57. ;;------------------------------
  58. ;; 8bpp 332 texture fast-replace
  59. ;;------------------------------
  60. BPP = 8
  61. rBits = 3
  62. gBits = 3
  63. bBits = 2
  64. rShift = 0
  65. gShift = 3
  66. bShift = 6
  67. ZBUFFER = 0
  68. ZCMP_L = 0
  69. ALPHA = 0
  70. PROCSTART <__fastFastPerspReplace>,<332>
  71. INCLUDE texspanr.asm
  72. PROCEND <__fastFastPerspReplace>,<332>
  73. ZBUFFER = 1
  74. PROCSTART <__fastFastPerspReplaceZle>,<332>
  75. INCLUDE texspan.asm
  76. PROCEND <__fastFastPerspReplaceZle>,<332>
  77. ZCMP_L = 1
  78. PROCSTART <__fastFastPerspReplaceZlt>,<332>
  79. INCLUDE texspan.asm
  80. PROCEND <__fastFastPerspReplaceZlt>,<332>
  81. ;;-------------------------------
  82. ;; 16bpp 565 texture fast-replace
  83. ;;-------------------------------
  84. BPP = 16
  85. rBits = 5
  86. gBits = 6
  87. bBits = 5
  88. rShift = 11
  89. gShift = 5
  90. bShift = 0
  91. ZBUFFER = 0
  92. ZCMP_L = 0
  93. ALPHA = 0
  94. PROCSTART <__fastFastPerspReplace>,<565>
  95. INCLUDE texspanr.asm
  96. PROCEND <__fastFastPerspReplace>,<565>
  97. ZBUFFER = 1
  98. PROCSTART <__fastFastPerspReplaceZle>,<565>
  99. INCLUDE texspan.asm
  100. PROCEND <__fastFastPerspReplaceZle>,<565>
  101. ZCMP_L = 1
  102. PROCSTART <__fastFastPerspReplaceZlt>,<565>
  103. INCLUDE texspan.asm
  104. PROCEND <__fastFastPerspReplaceZlt>,<565>
  105. FAST_REPLACE = 0
  106. ;;----------------------------------------------------------------------
  107. ;;
  108. ;; REPLACE MODES - RGB(A)
  109. ;;
  110. ;;----------------------------------------------------------------------
  111. REPLACE = 1
  112. ;;----------------------------
  113. ;; 8bpp 332 texture replace
  114. ;;----------------------------
  115. BPP = 8
  116. rBits = 3
  117. gBits = 3
  118. bBits = 2
  119. rShift = 0
  120. gShift = 3
  121. bShift = 6
  122. ZBUFFER = 0
  123. ZCMP_L = 0
  124. ALPHA = 1
  125. PROCSTART <__fastPerspReplaceAlpha>,<332>
  126. INCLUDE texspan.asm
  127. PROCEND <__fastPerspReplaceAlpha>,<332>
  128. ZBUFFER = 1
  129. PROCSTART <__fastPerspReplaceAlphaZle>,<332>
  130. INCLUDE texspan.asm
  131. PROCEND <__fastPerspReplaceAlphaZle>,<332>
  132. ZCMP_L = 1
  133. PROCSTART <__fastPerspReplaceAlphaZlt>,<332>
  134. INCLUDE texspan.asm
  135. PROCEND <__fastPerspReplaceAlphaZlt>,<332>
  136. ;;----------------------------
  137. ;; 16bpp 555 texture replace
  138. ;;----------------------------
  139. BPP = 16
  140. rBits = 5
  141. gBits = 5
  142. bBits = 5
  143. rShift = 10
  144. gShift = 5
  145. bShift = 0
  146. ZBUFFER = 0
  147. ZCMP_L = 0
  148. ALPHA = 1
  149. PROCSTART <__fastPerspReplaceAlpha>,<555>
  150. INCLUDE texspan.asm
  151. PROCEND <__fastPerspReplaceAlpha>,<555>
  152. ZBUFFER = 1
  153. PROCSTART <__fastPerspReplaceAlphaZle>,<555>
  154. INCLUDE texspan.asm
  155. PROCEND <__fastPerspReplaceAlphaZle>,<555>
  156. ZCMP_L = 1
  157. PROCSTART <__fastPerspReplaceAlphaZlt>,<555>
  158. INCLUDE texspan.asm
  159. PROCEND <__fastPerspReplaceAlphaZlt>,<555>
  160. ;;----------------------------
  161. ;; 16bpp 565 texture replace
  162. ;;----------------------------
  163. BPP = 16
  164. rBits = 5
  165. gBits = 6
  166. bBits = 5
  167. rShift = 11
  168. gShift = 5
  169. bShift = 0
  170. ZBUFFER = 0
  171. ZCMP_L = 0
  172. ALPHA = 1
  173. PROCSTART <__fastPerspReplaceAlpha>,<565>
  174. INCLUDE texspan.asm
  175. PROCEND <__fastPerspReplaceAlpha>,<565>
  176. ZBUFFER = 1
  177. PROCSTART <__fastPerspReplaceAlphaZle>,<565>
  178. INCLUDE texspan.asm
  179. PROCEND <__fastPerspReplaceAlphaZle>,<565>
  180. ZCMP_L = 1
  181. PROCSTART <__fastPerspReplaceAlphaZlt>,<565>
  182. INCLUDE texspan.asm
  183. PROCEND <__fastPerspReplaceAlphaZlt>,<565>
  184. ;;----------------------------
  185. ;; 32bpp 888 texture replace
  186. ;;----------------------------
  187. BPP = 32
  188. rBits = 8
  189. gBits = 8
  190. bBits = 8
  191. rShift = 16
  192. gShift = 8
  193. bShift = 0
  194. ZBUFFER = 0
  195. ZCMP_L = 0
  196. ALPHA = 0
  197. PROCSTART <__fastPerspReplace>,<888>
  198. INCLUDE texspan.asm
  199. PROCEND <__fastPerspReplace>,<888>
  200. ZBUFFER = 1
  201. PROCSTART <__fastPerspReplaceZle>,<888>
  202. INCLUDE texspan.asm
  203. PROCEND <__fastPerspReplaceZle>,<888>
  204. ZCMP_L = 1
  205. PROCSTART <__fastPerspReplaceZlt>,<888>
  206. INCLUDE texspan.asm
  207. PROCEND <__fastPerspReplaceZlt>,<888>
  208. ZBUFFER = 0
  209. ZCMP_L = 0
  210. ALPHA = 1
  211. PROCSTART <__fastPerspReplaceAlpha>,<888>
  212. INCLUDE texspan.asm
  213. PROCEND <__fastPerspReplaceAlpha>,<888>
  214. ZBUFFER = 1
  215. PROCSTART <__fastPerspReplaceAlphaZle>,<888>
  216. INCLUDE texspan.asm
  217. PROCEND <__fastPerspReplaceAlphaZle>,<888>
  218. ZCMP_L = 1
  219. PROCSTART <__fastPerspReplaceAlphaZlt>,<888>
  220. INCLUDE texspan.asm
  221. PROCEND <__fastPerspReplaceAlphaZlt>,<888>
  222. ;;----------------------------------------------------------------------
  223. ;;
  224. ;; REPLACE MODES - PALETTE
  225. ;;
  226. ;;----------------------------------------------------------------------
  227. PALETTE_ONLY = 1
  228. FAST_REPLACE = 1
  229. ;;----------------------------------
  230. ;; 8bpp 332 texture replace, palette
  231. ;;----------------------------------
  232. BPP = 8
  233. rBits = 3
  234. gBits = 3
  235. bBits = 2
  236. rShift = 0
  237. gShift = 3
  238. bShift = 6
  239. ZBUFFER = 0
  240. ZCMP_L = 0
  241. ALPHA = 0
  242. PROCSTART <__fastFastPerspPalReplace>,<332>
  243. INCLUDE texspanr.asm
  244. PROCEND <__fastFastPerspPalReplace>,<332>
  245. ZBUFFER = 1
  246. PROCSTART <__fastFastPerspPalReplaceZle>,<332>
  247. INCLUDE texspan.asm
  248. PROCEND <__fastFastPerspPalReplaceZle>,<332>
  249. ZCMP_L = 1
  250. PROCSTART <__fastFastPerspPalReplaceZlt>,<332>
  251. INCLUDE texspan.asm
  252. PROCEND <__fastFastPerspPalReplaceZlt>,<332>
  253. ZBUFFER = 0
  254. ZCMP_L = 0
  255. ALPHA = 1
  256. PROCSTART <__fastFastPerspPalReplaceAlpha>,<332>
  257. INCLUDE texspan.asm
  258. PROCEND <__fastFastPerspPalReplaceAlpha>,<332>
  259. ZBUFFER = 1
  260. PROCSTART <__fastFastPerspPalReplaceAlphaZle>,<332>
  261. INCLUDE texspan.asm
  262. PROCEND <__fastFastPerspPalReplaceAlphaZle>,<332>
  263. ZCMP_L = 1
  264. PROCSTART <__fastFastPerspPalReplaceAlphaZlt>,<332>
  265. INCLUDE texspan.asm
  266. PROCEND <__fastFastPerspPalReplaceAlphaZlt>,<332>
  267. ;;-----------------------------------
  268. ;; 16bpp 555 texture replace, palette
  269. ;;-----------------------------------
  270. BPP = 16
  271. rBits = 5
  272. gBits = 5
  273. bBits = 5
  274. rShift = 10
  275. gShift = 5
  276. bShift = 0
  277. ZBUFFER = 0
  278. ZCMP_L = 0
  279. ALPHA = 1
  280. PROCSTART <__fastFastPerspPalReplaceAlpha>,<555>
  281. INCLUDE texspan.asm
  282. PROCEND <__fastFastPerspPalReplaceAlpha>,<555>
  283. ZBUFFER = 1
  284. PROCSTART <__fastFastPerspPalReplaceAlphaZle>,<555>
  285. INCLUDE texspan.asm
  286. PROCEND <__fastFastPerspPalReplaceAlphaZle>,<555>
  287. ZCMP_L = 1
  288. PROCSTART <__fastFastPerspPalReplaceAlphaZlt>,<555>
  289. INCLUDE texspan.asm
  290. PROCEND <__fastFastPerspPalReplaceAlphaZlt>,<555>
  291. ;;-----------------------------------
  292. ;; 16bpp 565 texture replace, palette
  293. ;;-----------------------------------
  294. BPP = 16
  295. rBits = 5
  296. gBits = 6
  297. bBits = 5
  298. rShift = 11
  299. gShift = 5
  300. bShift = 0
  301. ZBUFFER = 0
  302. ZCMP_L = 0
  303. ALPHA = 0
  304. PROCSTART <__fastFastPerspPalReplace>,<565>
  305. INCLUDE texspanr.asm
  306. PROCEND <__fastFastPerspPalReplace>,<565>
  307. ZBUFFER = 1
  308. PROCSTART <__fastFastPerspPalReplaceZle>,<565>
  309. INCLUDE texspan.asm
  310. PROCEND <__fastFastPerspPalReplaceZle>,<565>
  311. ZCMP_L = 1
  312. PROCSTART <__fastFastPerspPalReplaceZlt>,<565>
  313. INCLUDE texspan.asm
  314. PROCEND <__fastFastPerspPalReplaceZlt>,<565>
  315. ZBUFFER = 0
  316. ZCMP_L = 0
  317. ALPHA = 1
  318. PROCSTART <__fastFastPerspPalReplaceAlpha>,<565>
  319. INCLUDE texspan.asm
  320. PROCEND <__fastFastPerspPalReplaceAlpha>,<565>
  321. ZBUFFER = 1
  322. PROCSTART <__fastFastPerspPalReplaceAlphaZle>,<565>
  323. INCLUDE texspan.asm
  324. PROCEND <__fastFastPerspPalReplaceAlphaZle>,<565>
  325. ZCMP_L = 1
  326. PROCSTART <__fastFastPerspPalReplaceAlphaZlt>,<565>
  327. INCLUDE texspan.asm
  328. PROCEND <__fastFastPerspPalReplaceAlphaZlt>,<565>
  329. FAST_REPLACE = 0
  330. ;;-----------------------------------
  331. ;; 32bpp 888 texture replace, palette
  332. ;;-----------------------------------
  333. BPP = 32
  334. rBits = 8
  335. gBits = 8
  336. bBits = 8
  337. rShift = 16
  338. gShift = 8
  339. bShift = 0
  340. ZBUFFER = 0
  341. ZCMP_L = 0
  342. ALPHA = 0
  343. PROCSTART <__fastPerspPalReplace>,<888>
  344. INCLUDE texspan.asm
  345. PROCEND <__fastPerspPalReplace>,<888>
  346. ZBUFFER = 1
  347. PROCSTART <__fastPerspPalReplaceZle>,<888>
  348. INCLUDE texspan.asm
  349. PROCEND <__fastPerspPalReplaceZle>,<888>
  350. ZCMP_L = 1
  351. PROCSTART <__fastPerspPalReplaceZlt>,<888>
  352. INCLUDE texspan.asm
  353. PROCEND <__fastPerspPalReplaceZlt>,<888>
  354. ZBUFFER = 0
  355. ZCMP_L = 0
  356. ALPHA = 1
  357. PROCSTART <__fastPerspPalReplaceAlpha>,<888>
  358. INCLUDE texspan.asm
  359. PROCEND <__fastPerspPalReplaceAlpha>,<888>
  360. ZBUFFER = 1
  361. PROCSTART <__fastPerspPalReplaceAlphaZle>,<888>
  362. INCLUDE texspan.asm
  363. PROCEND <__fastPerspPalReplaceAlphaZle>,<888>
  364. ZCMP_L = 1
  365. PROCSTART <__fastPerspPalReplaceAlphaZlt>,<888>
  366. INCLUDE texspan.asm
  367. PROCEND <__fastPerspPalReplaceAlphaZlt>,<888>
  368. PALETTE_ONLY = 0
  369. REPLACE = 0
  370. ;; For all of the modes below, enable the palette path:
  371. PALETTE_ENABLED = 1
  372. ;;----------------------------------------------------------------------
  373. ;;
  374. ;; FLAT-SHADING MODES
  375. ;;
  376. ;;----------------------------------------------------------------------
  377. FLAT_SHADING = 1
  378. ;;------------------------------
  379. ;; 8bpp 332 texture flat-shading
  380. ;;------------------------------
  381. BPP = 8
  382. rBits = 3
  383. gBits = 3
  384. bBits = 2
  385. rShift = 0
  386. gShift = 3
  387. bShift = 6
  388. ZBUFFER = 0
  389. ZCMP_L = 0
  390. ALPHA = 0
  391. PROCSTART <__fastPerspFlat>,<332>
  392. INCLUDE texspan.asm
  393. PROCEND <__fastPerspFlat>,<332>
  394. ZBUFFER = 1
  395. PROCSTART <__fastPerspFlatZle>,<332>
  396. INCLUDE texspan.asm
  397. PROCEND <__fastPerspFlatZle>,<332>
  398. ZCMP_L = 1
  399. PROCSTART <__fastPerspFlatZlt>,<332>
  400. INCLUDE texspan.asm
  401. PROCEND <__fastPerspFlatZlt>,<332>
  402. ZBUFFER = 0
  403. ZCMP_L = 0
  404. ALPHA = 1
  405. PROCSTART <__fastPerspFlatAlpha>,<332>
  406. INCLUDE texspan.asm
  407. PROCEND <__fastPerspFlatAlpha>,<332>
  408. ZBUFFER = 1
  409. PROCSTART <__fastPerspFlatAlphaZle>,<332>
  410. INCLUDE texspan.asm
  411. PROCEND <__fastPerspFlatAlphaZle>,<332>
  412. ZCMP_L = 1
  413. PROCSTART <__fastPerspFlatAlphaZlt>,<332>
  414. INCLUDE texspan.asm
  415. PROCEND <__fastPerspFlatAlphaZlt>,<332>
  416. ;;-------------------------------
  417. ;; 16bpp 555 texture flat-shading
  418. ;;-------------------------------
  419. BPP = 16
  420. rBits = 5
  421. gBits = 5
  422. bBits = 5
  423. rShift = 10
  424. gShift = 5
  425. bShift = 0
  426. ZBUFFER = 0
  427. ZCMP_L = 0
  428. ALPHA = 0
  429. PROCSTART <__fastPerspFlat>,<555>
  430. INCLUDE texspan.asm
  431. PROCEND <__fastPerspFlat>,<555>
  432. ZBUFFER = 1
  433. PROCSTART <__fastPerspFlatZle>,<555>
  434. INCLUDE texspan.asm
  435. PROCEND <__fastPerspFlatZle>,<555>
  436. ZCMP_L = 1
  437. PROCSTART <__fastPerspFlatZlt>,<555>
  438. INCLUDE texspan.asm
  439. PROCEND <__fastPerspFlatZlt>,<555>
  440. ZBUFFER = 0
  441. ZCMP_L = 0
  442. ALPHA = 1
  443. PROCSTART <__fastPerspFlatAlpha>,<555>
  444. INCLUDE texspan.asm
  445. PROCEND <__fastPerspFlatAlpha>,<555>
  446. ZBUFFER = 1
  447. PROCSTART <__fastPerspFlatAlphaZle>,<555>
  448. INCLUDE texspan.asm
  449. PROCEND <__fastPerspFlatAlphaZle>,<555>
  450. ZCMP_L = 1
  451. PROCSTART <__fastPerspFlatAlphaZlt>,<555>
  452. INCLUDE texspan.asm
  453. PROCEND <__fastPerspFlatAlphaZlt>,<555>
  454. ;;-------------------------------
  455. ;; 16bpp 565 texture flat-shading
  456. ;;-------------------------------
  457. BPP = 16
  458. rBits = 5
  459. gBits = 6
  460. bBits = 5
  461. rShift = 11
  462. gShift = 5
  463. bShift = 0
  464. ZBUFFER = 0
  465. ZCMP_L = 0
  466. ALPHA = 0
  467. PROCSTART <__fastPerspFlat>,<565>
  468. INCLUDE texspan.asm
  469. PROCEND <__fastPerspFlat>,<565>
  470. ZBUFFER = 1
  471. PROCSTART <__fastPerspFlatZle>,<565>
  472. INCLUDE texspan.asm
  473. PROCEND <__fastPerspFlatZle>,<565>
  474. ZCMP_L = 1
  475. PROCSTART <__fastPerspFlatZlt>,<565>
  476. INCLUDE texspan.asm
  477. PROCEND <__fastPerspFlatZlt>,<565>
  478. ZBUFFER = 0
  479. ZCMP_L = 0
  480. ALPHA = 1
  481. PROCSTART <__fastPerspFlatAlpha>,<565>
  482. INCLUDE texspan.asm
  483. PROCEND <__fastPerspFlatAlpha>,<565>
  484. ZBUFFER = 1
  485. PROCSTART <__fastPerspFlatAlphaZle>,<565>
  486. INCLUDE texspan.asm
  487. PROCEND <__fastPerspFlatAlphaZle>,<565>
  488. ZCMP_L = 1
  489. PROCSTART <__fastPerspFlatAlphaZlt>,<565>
  490. INCLUDE texspan.asm
  491. PROCEND <__fastPerspFlatAlphaZlt>,<565>
  492. ;;-------------------------------
  493. ;; 32bpp 888 texture flat-shading
  494. ;;-------------------------------
  495. BPP = 32
  496. rBits = 8
  497. gBits = 8
  498. bBits = 8
  499. rShift = 16
  500. gShift = 8
  501. bShift = 0
  502. ZBUFFER = 0
  503. ZCMP_L = 0
  504. ALPHA = 0
  505. PROCSTART <__fastPerspFlat>,<888>
  506. INCLUDE texspan.asm
  507. PROCEND <__fastPerspFlat>,<888>
  508. ZBUFFER = 1
  509. PROCSTART <__fastPerspFlatZle>,<888>
  510. INCLUDE texspan.asm
  511. PROCEND <__fastPerspFlatZle>,<888>
  512. ZCMP_L = 1
  513. PROCSTART <__fastPerspFlatZlt>,<888>
  514. INCLUDE texspan.asm
  515. PROCEND <__fastPerspFlatZlt>,<888>
  516. ZBUFFER = 0
  517. ZCMP_L = 0
  518. ALPHA = 1
  519. PROCSTART <__fastPerspFlatAlpha>,<888>
  520. INCLUDE texspan.asm
  521. PROCEND <__fastPerspFlatAlpha>,<888>
  522. ZBUFFER = 1
  523. PROCSTART <__fastPerspFlatAlphaZle>,<888>
  524. INCLUDE texspan.asm
  525. PROCEND <__fastPerspFlatAlphaZle>,<888>
  526. ZCMP_L = 1
  527. PROCSTART <__fastPerspFlatAlphaZlt>,<888>
  528. INCLUDE texspan.asm
  529. PROCEND <__fastPerspFlatAlphaZlt>,<888>
  530. FLAT_SHADING = 0
  531. ;;----------------------------------------------------------------------
  532. ;;
  533. ;; SMOOTH-SHADING MODES
  534. ;;
  535. ;;----------------------------------------------------------------------
  536. SMOOTH_SHADING = 1
  537. ;;--------------------------------
  538. ;; 8bpp 332 texture smooth-shading
  539. ;;--------------------------------
  540. BPP = 8
  541. rBits = 3
  542. gBits = 3
  543. bBits = 2
  544. rShift = 0
  545. gShift = 3
  546. bShift = 6
  547. ZBUFFER = 0
  548. ZCMP_L = 0
  549. ALPHA = 0
  550. PROCSTART <__fastPerspSmooth>,<332>
  551. INCLUDE texspan.asm
  552. PROCEND <__fastPerspSmooth>,<332>
  553. ZBUFFER = 1
  554. PROCSTART <__fastPerspSmoothZle>,<332>
  555. INCLUDE texspan.asm
  556. PROCEND <__fastPerspSmoothZle>,<332>
  557. ZCMP_L = 1
  558. PROCSTART <__fastPerspSmoothZlt>,<332>
  559. INCLUDE texspan.asm
  560. PROCEND <__fastPerspSmoothZlt>,<332>
  561. ZBUFFER = 0
  562. ZCMP_L = 0
  563. ALPHA = 1
  564. PROCSTART <__fastPerspSmoothAlpha>,<332>
  565. INCLUDE texspan.asm
  566. PROCEND <__fastPerspSmoothAlpha>,<332>
  567. ZBUFFER = 1
  568. PROCSTART <__fastPerspSmoothAlphaZle>,<332>
  569. INCLUDE texspan.asm
  570. PROCEND <__fastPerspSmoothAlphaZle>,<332>
  571. ZCMP_L = 1
  572. PROCSTART <__fastPerspSmoothAlphaZlt>,<332>
  573. INCLUDE texspan.asm
  574. PROCEND <__fastPerspSmoothAlphaZlt>,<332>
  575. ;;---------------------------------
  576. ;; 16bpp 555 texture smooth-shading
  577. ;;---------------------------------
  578. BPP = 16
  579. rBits = 5
  580. gBits = 5
  581. bBits = 5
  582. rShift = 10
  583. gShift = 5
  584. bShift = 0
  585. ZBUFFER = 0
  586. ZCMP_L = 0
  587. ALPHA = 0
  588. PROCSTART <__fastPerspSmooth>,<555>
  589. INCLUDE texspan.asm
  590. PROCEND <__fastPerspSmooth>,<555>
  591. ZBUFFER = 1
  592. PROCSTART <__fastPerspSmoothZle>,<555>
  593. INCLUDE texspan.asm
  594. PROCEND <__fastPerspSmoothZle>,<555>
  595. ZCMP_L = 1
  596. PROCSTART <__fastPerspSmoothZlt>,<555>
  597. INCLUDE texspan.asm
  598. PROCEND <__fastPerspSmoothZlt>,<555>
  599. ZBUFFER = 0
  600. ZCMP_L = 0
  601. ALPHA = 1
  602. PROCSTART <__fastPerspSmoothAlpha>,<555>
  603. INCLUDE texspan.asm
  604. PROCEND <__fastPerspSmoothAlpha>,<555>
  605. ZBUFFER = 1
  606. PROCSTART <__fastPerspSmoothAlphaZle>,<555>
  607. INCLUDE texspan.asm
  608. PROCEND <__fastPerspSmoothAlphaZle>,<555>
  609. ZCMP_L = 1
  610. PROCSTART <__fastPerspSmoothAlphaZlt>,<555>
  611. INCLUDE texspan.asm
  612. PROCEND <__fastPerspSmoothAlphaZlt>,<555>
  613. ;;---------------------------------
  614. ;; 16bpp 565 texture smooth-shading
  615. ;;---------------------------------
  616. BPP = 16
  617. rBits = 5
  618. gBits = 6
  619. bBits = 5
  620. rShift = 11
  621. gShift = 5
  622. bShift = 0
  623. ZBUFFER = 0
  624. ZCMP_L = 0
  625. ALPHA = 0
  626. PROCSTART <__fastPerspSmooth>,<565>
  627. INCLUDE texspan.asm
  628. PROCEND <__fastPerspSmooth>,<565>
  629. ZBUFFER = 1
  630. PROCSTART <__fastPerspSmoothZle>,<565>
  631. INCLUDE texspan.asm
  632. PROCEND <__fastPerspSmoothZle>,<565>
  633. ZCMP_L = 1
  634. PROCSTART <__fastPerspSmoothZlt>,<565>
  635. INCLUDE texspan.asm
  636. PROCEND <__fastPerspSmoothZlt>,<565>
  637. ZBUFFER = 0
  638. ZCMP_L = 0
  639. ALPHA = 1
  640. PROCSTART <__fastPerspSmoothAlpha>,<565>
  641. INCLUDE texspan.asm
  642. PROCEND <__fastPerspSmoothAlpha>,<565>
  643. ZBUFFER = 1
  644. PROCSTART <__fastPerspSmoothAlphaZle>,<565>
  645. INCLUDE texspan.asm
  646. PROCEND <__fastPerspSmoothAlphaZle>,<565>
  647. ZCMP_L = 1
  648. PROCSTART <__fastPerspSmoothAlphaZlt>,<565>
  649. INCLUDE texspan.asm
  650. PROCEND <__fastPerspSmoothAlphaZlt>,<565>
  651. ;;---------------------------------
  652. ;; 32bpp 888 texture smooth-shading
  653. ;;---------------------------------
  654. BPP = 32
  655. rBits = 8
  656. gBits = 8
  657. bBits = 8
  658. rShift = 16
  659. gShift = 8
  660. bShift = 0
  661. ZBUFFER = 0
  662. ZCMP_L = 0
  663. ALPHA = 0
  664. PROCSTART <__fastPerspSmooth>,<888>
  665. INCLUDE texspan.asm
  666. PROCEND <__fastPerspSmooth>,<888>
  667. ZBUFFER = 1
  668. PROCSTART <__fastPerspSmoothZle>,<888>
  669. INCLUDE texspan.asm
  670. PROCEND <__fastPerspSmoothZle>,<888>
  671. ZCMP_L = 1
  672. PROCSTART <__fastPerspSmoothZlt>,<888>
  673. INCLUDE texspan.asm
  674. PROCEND <__fastPerspSmoothZlt>,<888>
  675. ZBUFFER = 0
  676. ZCMP_L = 0
  677. ALPHA = 1
  678. PROCSTART <__fastPerspSmoothAlpha>,<888>
  679. INCLUDE texspan.asm
  680. PROCEND <__fastPerspSmoothAlpha>,<888>
  681. ZBUFFER = 1
  682. PROCSTART <__fastPerspSmoothAlphaZle>,<888>
  683. INCLUDE texspan.asm
  684. PROCEND <__fastPerspSmoothAlphaZle>,<888>
  685. ZCMP_L = 1
  686. PROCSTART <__fastPerspSmoothAlphaZlt>,<888>
  687. INCLUDE texspan.asm
  688. PROCEND <__fastPerspSmoothAlphaZlt>,<888>
  689. FLAT_SHADING = 0
  690. end