-
Notifications
You must be signed in to change notification settings - Fork 9
/
sparrowPrimitiveTexTriangleInclude.c
2511 lines (2481 loc) · 188 KB
/
sparrowPrimitiveTexTriangleInclude.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* This file is part of sparrow3d.
* Sparrow3d is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* Sparrow3d is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Foobar. If not, see <http://www.gnu.org/licenses/>
*
* For feedback and questions about my Files and Projects please mail me,
* Alexander Matthes (Ziz) , zizsdl_at_googlemail.com */
/* This file is very bad style - and I know it! But this is the best
* way to get the code fast and still understanable. The only
* alternative I used before was massive copy and paste, which is
* bollocks. */
#ifdef __SPARROW_INTERNAL_BLENDING__
#ifdef __SPARROW_INTERNAL_PERSPECT__
#ifdef __SPARROW_INTERNAL_PATTERN__
#ifdef __SPARROW_INTERNAL_ALPHA__
#ifdef __SPARROW_INTERNAL_ZBOTH__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_ztest_zset_alpha_pattern_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern, spBlending );
#elif defined __SPARROW_INTERNAL_ZTEST__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_ztest_alpha_pattern_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern, spBlending );
#elif defined __SPARROW_INTERNAL_ZSET__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_zset_alpha_pattern_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern, spBlending );
#else
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_alpha_pattern_perspect( x, y, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern, spBlending );
#endif
#else
#ifdef __SPARROW_INTERNAL_ZBOTH__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_ztest_zset_pattern_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern, spBlending );
#elif defined __SPARROW_INTERNAL_ZTEST__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_ztest_pattern_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern, spBlending );
#elif defined __SPARROW_INTERNAL_ZSET__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_zset_pattern_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern, spBlending );
#else
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_pattern_perspect( x, y, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern, spBlending );
#endif
#endif
#else
#ifdef __SPARROW_INTERNAL_ALPHA__
#ifdef __SPARROW_INTERNAL_ZBOTH__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_ztest_zset_alpha_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spBlending );
#elif defined __SPARROW_INTERNAL_ZTEST__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_ztest_alpha_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spBlending );
#elif defined __SPARROW_INTERNAL_ZSET__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_zset_alpha_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spBlending );
#else
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_alpha_perspect( x, y, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spBlending );
#endif
#else
#ifdef __SPARROW_INTERNAL_ZBOTH__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_ztest_zset_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spBlending );
#elif defined __SPARROW_INTERNAL_ZTEST__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_ztest_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spBlending );
#elif defined __SPARROW_INTERNAL_ZSET__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_zset_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spBlending );
#else
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_perspect( x, y, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spBlending );
#endif
#endif
#endif
#else
#ifdef __SPARROW_INTERNAL_PATTERN__
#ifdef __SPARROW_INTERNAL_ALPHA__
#ifdef __SPARROW_INTERNAL_ZBOTH__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_ztest_zset_alpha_pattern( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern, spBlending );
#elif defined __SPARROW_INTERNAL_ZTEST__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_ztest_alpha_pattern( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern, spBlending );
#elif defined __SPARROW_INTERNAL_ZSET__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_zset_alpha_pattern( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern, spBlending );
#else
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_alpha_pattern( x, y, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern, spBlending );
#endif
#else
#ifdef __SPARROW_INTERNAL_ZBOTH__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_ztest_zset_pattern( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY,spPattern, spBlending );
#elif defined __SPARROW_INTERNAL_ZTEST__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_ztest_pattern( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY,spPattern, spBlending );
#elif defined __SPARROW_INTERNAL_ZSET__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_zset_pattern( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY,spPattern, spBlending );
#else
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_pattern( x, y, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY,spPattern, spBlending );
#endif
#endif
#else
#ifdef __SPARROW_INTERNAL_ALPHA__
#ifdef __SPARROW_INTERNAL_ZBOTH__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_ztest_zset_alpha( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spBlending );
#elif defined __SPARROW_INTERNAL_ZTEST__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_ztest_alpha( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spBlending );
#elif defined __SPARROW_INTERNAL_ZSET__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_zset_alpha( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spBlending );
#else
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_alpha( x, y, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spBlending );
#endif
#else
#ifdef __SPARROW_INTERNAL_ZBOTH__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_ztest_zset( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spBlending );
#elif defined __SPARROW_INTERNAL_ZTEST__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_ztest( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spBlending );
#elif defined __SPARROW_INTERNAL_ZSET__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex_zset( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spBlending );
#else
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_blending_tex( x, y, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spBlending );
#endif
#endif
#endif
#endif
#else
#ifdef __SPARROW_INTERNAL_PERSPECT__
#ifdef __SPARROW_INTERNAL_PATTERN__
#ifdef __SPARROW_INTERNAL_ALPHA__
#ifdef __SPARROW_INTERNAL_ZBOTH__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_ztest_zset_alpha_pattern_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern );
#elif defined __SPARROW_INTERNAL_ZTEST__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_ztest_alpha_pattern_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern );
#elif defined __SPARROW_INTERNAL_ZSET__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_zset_alpha_pattern_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern );
#else
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_alpha_pattern_perspect( x, y, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern );
#endif
#else
#ifdef __SPARROW_INTERNAL_ZBOTH__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_ztest_zset_pattern_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern );
#elif defined __SPARROW_INTERNAL_ZTEST__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_ztest_pattern_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern );
#elif defined __SPARROW_INTERNAL_ZSET__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_zset_pattern_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern );
#else
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_pattern_perspect( x, y, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern );
#endif
#endif
#else
#ifdef __SPARROW_INTERNAL_ALPHA__
#ifdef __SPARROW_INTERNAL_ZBOTH__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_ztest_zset_alpha_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY );
#elif defined __SPARROW_INTERNAL_ZTEST__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_ztest_alpha_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY );
#elif defined __SPARROW_INTERNAL_ZSET__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_zset_alpha_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY );
#else
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_alpha_perspect( x, y, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY );
#endif
#else
#ifdef __SPARROW_INTERNAL_ZBOTH__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_ztest_zset_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY );
#elif defined __SPARROW_INTERNAL_ZTEST__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_ztest_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY );
#elif defined __SPARROW_INTERNAL_ZSET__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_zset_perspect( x, y, z, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY );
#else
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_perspect( x, y, u, v, w, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY );
#endif
#endif
#endif
#else
#ifdef __SPARROW_INTERNAL_PATTERN__
#ifdef __SPARROW_INTERNAL_ALPHA__
#ifdef __SPARROW_INTERNAL_ZBOTH__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_ztest_zset_alpha_pattern( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern );
#elif defined __SPARROW_INTERNAL_ZTEST__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_ztest_alpha_pattern( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern );
#elif defined __SPARROW_INTERNAL_ZSET__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_zset_alpha_pattern( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern );
#else
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_alpha_pattern( x, y, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern );
#endif
#else
#ifdef __SPARROW_INTERNAL_ZBOTH__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_ztest_zset_pattern( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern );
#elif defined __SPARROW_INTERNAL_ZTEST__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_ztest_pattern( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern );
#elif defined __SPARROW_INTERNAL_ZSET__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_zset_pattern( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern );
#else
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_pattern( x, y, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY, spPattern );
#endif
#endif
#else
#ifdef __SPARROW_INTERNAL_ALPHA__
#ifdef __SPARROW_INTERNAL_ZBOTH__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_ztest_zset_alpha( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY );
#elif defined __SPARROW_INTERNAL_ZTEST__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_ztest_alpha( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY );
#elif defined __SPARROW_INTERNAL_ZSET__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_zset_alpha( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY );
#else
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_alpha( x, y, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY );
#endif
#else
#ifdef __SPARROW_INTERNAL_ZBOTH__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_ztest_zset( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY );
#elif defined __SPARROW_INTERNAL_ZTEST__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_ztest( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY);
#elif defined __SPARROW_INTERNAL_ZSET__
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex_zset( x, y, z, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY );
#else
#define pixel_macro(x,y,z,u,v,w,color) draw_pixel_tex( x, y, u >> SP_ACCURACY, v >> SP_ACCURACY, color, spTexturePixel, spTextureScanLine, spTextureX, spTextureY );
#endif
#endif
#endif
#endif
#endif
#ifndef __SPARROW_INTERNAL_BLENDING__
#ifdef __SPARROW_INTERNAL_PERSPECT__
#ifdef __SPARROW_INTERNAL_PATTERN__
#ifdef __SPARROW_INTERNAL_ALPHA__
#ifdef __SPARROW_INTERNAL_ZBOTH__
#ifdef __GNUC__
inline void draw_line_tex_ztest_zset_alpha_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_ztest_zset_alpha_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZTEST__
#ifdef __GNUC__
inline void draw_line_tex_ztest_alpha_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_ztest_alpha_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZSET__
#ifdef __GNUC__
inline void draw_line_tex_zset_alpha_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_zset_alpha_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#else
#ifdef __GNUC__
inline void draw_line_tex_alpha_pattern_perspect( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW ) __attribute__((always_inline));
#endif
inline void draw_line_tex_alpha_pattern_perspect( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW )
#endif
#else
#ifdef __SPARROW_INTERNAL_ZBOTH__
#ifdef __GNUC__
inline void draw_line_tex_ztest_zset_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_ztest_zset_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZTEST__
#ifdef __GNUC__
inline void draw_line_tex_ztest_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_ztest_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZSET__
#ifdef __GNUC__
inline void draw_line_tex_zset_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_zset_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#else
#ifdef __GNUC__
inline void draw_line_tex_pattern_perspect( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW ) __attribute__((always_inline));
#endif
inline void draw_line_tex_pattern_perspect( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW )
#endif
#endif
#else
#ifdef __SPARROW_INTERNAL_ALPHA__
#ifdef __SPARROW_INTERNAL_ZBOTH__
#ifdef __GNUC__
inline void draw_line_tex_ztest_zset_alpha_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_ztest_zset_alpha_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZTEST__
#ifdef __GNUC__
inline void draw_line_tex_ztest_alpha_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_ztest_alpha_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZSET__
#ifdef __GNUC__
inline void draw_line_tex_zset_alpha_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_zset_alpha_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#else
#ifdef __GNUC__
inline void draw_line_tex_alpha_perspect( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW ) __attribute__((always_inline));
#endif
inline void draw_line_tex_alpha_perspect( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW )
#endif
#else
#ifdef __SPARROW_INTERNAL_ZBOTH__
#ifdef __GNUC__
inline void draw_line_tex_ztest_zset_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_ztest_zset_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZTEST__
#ifdef __GNUC__
inline void draw_line_tex_ztest_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_ztest_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZSET__
#ifdef __GNUC__
inline void draw_line_tex_zset_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_zset_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#else
#ifdef __GNUC__
inline void draw_line_tex_perspect( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW ) __attribute__((always_inline));
#endif
inline void draw_line_tex_perspect( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW )
#endif
#endif
#endif
#else
#ifdef __SPARROW_INTERNAL_PATTERN__
#ifdef __SPARROW_INTERNAL_ALPHA__
#ifdef __SPARROW_INTERNAL_ZBOTH__
#ifdef __GNUC__
inline void draw_line_tex_ztest_zset_alpha_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_ztest_zset_alpha_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZTEST__
#ifdef __GNUC__
inline void draw_line_tex_ztest_alpha_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_ztest_alpha_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZSET__
#ifdef __GNUC__
inline void draw_line_tex_zset_alpha_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_zset_alpha_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#else
#ifdef __GNUC__
inline void draw_line_tex_alpha_pattern( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV ) __attribute__((always_inline));
#endif
inline void draw_line_tex_alpha_pattern( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV )
#endif
#else
#ifdef __SPARROW_INTERNAL_ZBOTH__
#ifdef __GNUC__
inline void draw_line_tex_ztest_zset_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_ztest_zset_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZTEST__
#ifdef __GNUC__
inline void draw_line_tex_ztest_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_ztest_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZSET__
#ifdef __GNUC__
inline void draw_line_tex_zset_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_zset_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#else
#ifdef __GNUC__
inline void draw_line_tex_pattern( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV ) __attribute__((always_inline));
#endif
inline void draw_line_tex_pattern( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV )
#endif
#endif
#else
#ifdef __SPARROW_INTERNAL_ALPHA__
#ifdef __SPARROW_INTERNAL_ZBOTH__
#ifdef __GNUC__
inline void draw_line_tex_ztest_zset_alpha( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_ztest_zset_alpha( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZTEST__
#ifdef __GNUC__
inline void draw_line_tex_ztest_alpha( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_ztest_alpha( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZSET__
#ifdef __GNUC__
inline void draw_line_tex_zset_alpha( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_zset_alpha( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#else
#ifdef __GNUC__
inline void draw_line_tex_alpha( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV ) __attribute__((always_inline));
#endif
inline void draw_line_tex_alpha( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV )
#endif
#else
#ifdef __SPARROW_INTERNAL_ZBOTH__
#ifdef __GNUC__
inline void draw_line_tex_ztest_zset( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_ztest_zset( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZTEST__
#ifdef __GNUC__
inline void draw_line_tex_ztest( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_ztest( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZSET__
#ifdef __GNUC__
inline void draw_line_tex_zset( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_tex_zset( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#else
#ifdef __GNUC__
inline void draw_line_tex( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV ) __attribute__((always_inline));
#endif
inline void draw_line_tex( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV )
#endif
#endif
#endif
#endif
#else
#ifdef __SPARROW_INTERNAL_PERSPECT__
#ifdef __SPARROW_INTERNAL_PATTERN__
#ifdef __SPARROW_INTERNAL_ALPHA__
#ifdef __SPARROW_INTERNAL_ZBOTH__
#ifdef __GNUC__
inline void draw_line_blending_tex_ztest_zset_alpha_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_ztest_zset_alpha_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZTEST__
#ifdef __GNUC__
inline void draw_line_blending_tex_ztest_alpha_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_ztest_alpha_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZSET__
#ifdef __GNUC__
inline void draw_line_blending_tex_zset_alpha_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_zset_alpha_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#else
#ifdef __GNUC__
inline void draw_line_blending_tex_alpha_pattern_perspect( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_alpha_pattern_perspect( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW )
#endif
#else
#ifdef __SPARROW_INTERNAL_ZBOTH__
#ifdef __GNUC__
inline void draw_line_blending_tex_ztest_zset_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_ztest_zset_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZTEST__
#ifdef __GNUC__
inline void draw_line_blending_tex_ztest_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_ztest_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZSET__
#ifdef __GNUC__
inline void draw_line_blending_tex_zset_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_zset_pattern_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#else
#ifdef __GNUC__
inline void draw_line_blending_tex_pattern_perspect( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_pattern_perspect( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW )
#endif
#endif
#else
#ifdef __SPARROW_INTERNAL_ALPHA__
#ifdef __SPARROW_INTERNAL_ZBOTH__
#ifdef __GNUC__
inline void draw_line_blending_tex_ztest_zset_alpha_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_ztest_zset_alpha_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZTEST__
#ifdef __GNUC__
inline void draw_line_blending_tex_ztest_alpha_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_ztest_alpha_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZSET__
#ifdef __GNUC__
inline void draw_line_blending_tex_zset_alpha_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_zset_alpha_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#else
#ifdef __GNUC__
inline void draw_line_blending_tex_alpha_perspect( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_alpha_perspect( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW )
#endif
#else
#ifdef __SPARROW_INTERNAL_ZBOTH__
#ifdef __GNUC__
inline void draw_line_blending_tex_ztest_zset_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_ztest_zset_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZTEST__
#ifdef __GNUC__
inline void draw_line_blending_tex_ztest_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_ztest_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZSET__
#ifdef __GNUC__
inline void draw_line_blending_tex_zset_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_zset_perspect( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW, Sint32 sZ )
#else
#ifdef __GNUC__
inline void draw_line_blending_tex_perspect( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_perspect( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sW )
#endif
#endif
#endif
#else
#ifdef __SPARROW_INTERNAL_PATTERN__
#ifdef __SPARROW_INTERNAL_ALPHA__
#ifdef __SPARROW_INTERNAL_ZBOTH__
#ifdef __GNUC__
inline void draw_line_blending_tex_ztest_zset_alpha_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_ztest_zset_alpha_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZTEST__
#ifdef __GNUC__
inline void draw_line_blending_tex_ztest_alpha_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_ztest_alpha_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZSET__
#ifdef __GNUC__
inline void draw_line_blending_tex_zset_alpha_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_zset_alpha_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#else
#ifdef __GNUC__
inline void draw_line_blending_tex_alpha_pattern( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_alpha_pattern( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV )
#endif
#else
#ifdef __SPARROW_INTERNAL_ZBOTH__
#ifdef __GNUC__
inline void draw_line_blending_tex_ztest_zset_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_ztest_zset_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZTEST__
#ifdef __GNUC__
inline void draw_line_blending_tex_ztest_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_ztest_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZSET__
#ifdef __GNUC__
inline void draw_line_blending_tex_zset_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_zset_pattern( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#else
#ifdef __GNUC__
inline void draw_line_blending_tex_pattern( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_pattern( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV )
#endif
#endif
#else
#ifdef __SPARROW_INTERNAL_ALPHA__
#ifdef __SPARROW_INTERNAL_ZBOTH__
#ifdef __GNUC__
inline void draw_line_blending_tex_ztest_zset_alpha( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_ztest_zset_alpha( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZTEST__
#ifdef __GNUC__
inline void draw_line_blending_tex_ztest_alpha( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_ztest_alpha( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZSET__
#ifdef __GNUC__
inline void draw_line_blending_tex_zset_alpha( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_zset_alpha( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#else
#ifdef __GNUC__
inline void draw_line_blending_tex_alpha( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_alpha( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV )
#endif
#else
#ifdef __SPARROW_INTERNAL_ZBOTH__
#ifdef __GNUC__
inline void draw_line_blending_tex_ztest_zset( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_ztest_zset( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZTEST__
#ifdef __GNUC__
inline void draw_line_blending_tex_ztest( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_ztest( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#elif defined __SPARROW_INTERNAL_ZSET__
#ifdef __GNUC__
inline void draw_line_blending_tex_zset( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex_zset( Sint32 x1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV, Sint32 sZ )
#else
#ifdef __GNUC__
inline void draw_line_blending_tex( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV ) __attribute__((always_inline));
#endif
inline void draw_line_blending_tex( Sint32 x1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 u2, Sint32 v2, Sint32 y, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending, Sint32 sU, Sint32 sV )
#endif
#endif
#endif
#endif
#endif
{
if ( x2 < x1)
return;
if ( x1 >= spTargetX )
return;
if ( x2 < 0 )
return;
Sint32 u = u1;
Sint32 v = v1;
#ifdef __SPARROW_INTERNAL_PERSPECT__
Sint32 w = w1;
#endif
#ifndef __SPARROW_INTERNAL_ZNOTHING__
Sint32 z = z1;
#endif
if ( x1 < 0 )
{
#ifndef __SPARROW_INTERNAL_ZNOTHING__
z -= x1 * sZ;
#endif
u -= x1 * sU;
v -= x1 * sV;
#ifdef __SPARROW_INTERNAL_PERSPECT__
w -= x1 * sW;
#endif
x1 = 0;
}
if ( x2 >= spTargetX )
x2 = spTargetX - 1;
int x;
#if defined(PANDORA_NEON) && defined(PANDORA)
//some useful constants
int32x4_t _0123 = {0,1,2,3};
int32x4_t _0000 = vdupq_n_s32(0);
int32x4_t _63488 = vdupq_n_s32(63488);
int32x4_t _2016 = vdupq_n_s32(2016);
int32x4_t _31 = vdupq_n_s32(31);
#ifdef __SPARROW_INTERNAL_ALPHA__
uint16x4_t alpha_4 = vdup_n_u16(SP_ALPHA_COLOR);
#endif
int32x4_t color_r; //0..31
int32x4_t color_g; //0..63
int32x4_t color_b; //0..31
if (color != 65535)
{
int r = color >> 11;
int g = (color & 2016) >> 5;
int b = color & 31;
color_r = vdupq_n_s32(r);
color_g = vdupq_n_s32(g);
color_b = vdupq_n_s32(b);
}
int32x4_t c_tx = vdupq_n_s32(spTextureX-1);
int32x4_t c_ty = vdupq_n_s32(spTextureY-1);
#ifdef __SPARROW_INTERNAL_PATTERN__
Uint8 pattern = spPattern[y & 7];
int shift = x1 & 7;
pattern = (pattern << shift) | (pattern >> 8 - shift);
Uint16 p_mask[8] = {
((pattern & 1) >> 0) *0xffff,
((pattern & 2) >> 1) *0xffff,
((pattern & 4) >> 2) *0xffff,
((pattern & 8) >> 3) *0xffff,
((pattern & 16) >> 4) *0xffff,
((pattern & 32) >> 5) *0xffff,
((pattern & 64) >> 6) *0xffff,
((pattern & 128) >> 7) *0xffff
};
uint16x4_t pattern_1 = vld1_u16( p_mask );
uint16x4_t pattern_2 = vld1_u16( &p_mask[4] );
#endif
int32x4_t sU_4 = vdupq_n_s32(sU);
int32x4_t sV_4 = vdupq_n_s32(sV);
#ifndef __SPARROW_INTERNAL_ZNOTHING__
int32x4_t sZ_4 = vdupq_n_s32(sZ);
#endif
#ifdef __SPARROW_INTERNAL_PERSPECT__
int32x4_t sW_4 = vdupq_n_s32(sW);
#endif
int32x4_t u_4 = vaddq_s32(vdupq_n_s32(u),vmulq_s32(_0123,sU_4));
sU_4 = vshlq_n_s32(sU_4,2); //*4
int32x4_t v_4 = vaddq_s32(vdupq_n_s32(v),vmulq_s32(_0123,sV_4));
sV_4 = vshlq_n_s32(sV_4,2); //*4
#ifndef __SPARROW_INTERNAL_ZNOTHING__
int32x4_t z_4 = vaddq_s32(vdupq_n_s32(z),vmulq_s32(_0123,sZ_4));
sZ_4 = vshlq_n_s32(sZ_4,2); //*4
#endif
#ifdef __SPARROW_INTERNAL_PERSPECT__
int32x4_t w_4 = vaddq_s32(vdupq_n_s32(w),vmulq_s32(_0123,sW_4));
sW_4 = vshlq_n_s32(sW_4,2); //*4
#endif
int count = ((x2-x1+1+3) >> 2) << 2;
int32_t u_buffer[count];
int32_t v_buffer[count];
#ifdef __SPARROW_INTERNAL_PERSPECT__
int32_t w_buffer[count];
#endif
uint16_t texel[count];
for ( x = 0; x < count; x+=4 ) //calculating too much, but doesn't matter
{
#ifdef __SPARROW_INTERNAL_PERSPECT__
vst1q_s32(&w_buffer[x],w_4);
vst1q_s32(&u_buffer[x],u_4);
vst1q_s32(&v_buffer[x],v_4);
u_buffer[x+0] = reciprocal_w_clip(u_buffer[x+0],w_buffer[x+0]);
u_buffer[x+1] = reciprocal_w_clip(u_buffer[x+1],w_buffer[x+1]);
u_buffer[x+2] = reciprocal_w_clip(u_buffer[x+2],w_buffer[x+2]);
u_buffer[x+3] = reciprocal_w_clip(u_buffer[x+3],w_buffer[x+3]);
v_buffer[x+0] = reciprocal_w_clip(v_buffer[x+0],w_buffer[x+0]);
v_buffer[x+1] = reciprocal_w_clip(v_buffer[x+1],w_buffer[x+1]);
v_buffer[x+2] = reciprocal_w_clip(v_buffer[x+2],w_buffer[x+2]);
v_buffer[x+3] = reciprocal_w_clip(v_buffer[x+3],w_buffer[x+3]);
w_4 = vaddq_s32(w_4,sW_4);
int32x4_t c_u = vminq_s32(vmaxq_s32(vld1q_s32(&u_buffer[x]),_0000),c_tx);
int32x4_t c_v = vminq_s32(vmaxq_s32(vld1q_s32(&v_buffer[x]),_0000),c_ty);
#else
int32x4_t c_u = vminq_s32(vmaxq_s32(vshrq_n_s32(u_4,SP_ACCURACY),_0000),c_tx);
int32x4_t c_v = vminq_s32(vmaxq_s32(vshrq_n_s32(v_4,SP_ACCURACY),_0000),c_ty);
#endif
vst1q_s32(&u_buffer[x],c_u);
vst1q_s32(&v_buffer[x],c_v);
u_4 = vaddq_s32(u_4,sU_4);
v_4 = vaddq_s32(v_4,sV_4);
texel[x+0] = spTexturePixel[u_buffer[x+0] + v_buffer[x+0] * spTextureScanLine];
texel[x+1] = spTexturePixel[u_buffer[x+1] + v_buffer[x+1] * spTextureScanLine];
texel[x+2] = spTexturePixel[u_buffer[x+2] + v_buffer[x+2] * spTextureScanLine];
texel[x+3] = spTexturePixel[u_buffer[x+3] + v_buffer[x+3] * spTextureScanLine];
}
for ( x = 0; x < count; x+=4 ) //calculating too much, but doesn't matter
{
uint16x4_t pixel = vld1_u16(&texel[x]);
#ifdef __SPARROW_INTERNAL_ALPHA__
#define MASK_DEFINED
uint16x4_t mask = vmvn_u16(vceq_u16( pixel, alpha_4));
#endif
if (color != 65535)
{
int32x4_t super_pixel = vreinterpretq_s32_u32(vmovl_u16(pixel));
int32x4_t n_r = vandq_s32(vshrq_n_s32(vmulq_s32(color_r,vandq_s32(super_pixel,_63488)),5),_63488);
int32x4_t n_g = vandq_s32(vshrq_n_s32(vmulq_s32(color_g,vandq_s32(super_pixel, _2016)),6), _2016);
int32x4_t n_b = vandq_s32(vshrq_n_s32(vmulq_s32(color_b,vandq_s32(super_pixel, _31)),5), _31);
super_pixel = vorrq_s32(n_r,vorrq_s32(n_g,n_b));
pixel = vmovn_u32(vreinterpretq_u32_s32(super_pixel));
}
#ifndef __SPARROW_INTERNAL_ZNOTHING__
#if defined(__SPARROW_INTERNAL_ZBOTH__) || defined(__SPARROW_INTERNAL_ZTEST__)
void* ztr = &spZBuffer[(x+x1) + (y) * spTargetScanLine];
int32x4_t zbuffer_4 = vld1q_s32( ztr );
#ifdef MASK_DEFINED
uint16x4_t z_mask = vmovn_u32( vandq_u32 ( vcltq_s32(z_4,zbuffer_4), vcgeq_s32(z_4,_0000) ) );
mask = vand_u16(z_mask,mask);
#else
#define MASK_DEFINED
uint16x4_t mask = vmovn_u32( vandq_u32 ( vcltq_s32(z_4,zbuffer_4), vcgeq_s32(z_4,_0000) ) );
#endif
#endif
z_4 = vaddq_s32(z_4,sZ_4);
#endif
#ifdef __SPARROW_INTERNAL_PATTERN__
#ifdef MASK_DEFINED
mask = vand_u16(((x >> 2) & 1) ? pattern_2 : pattern_1,mask);
#else
#define MASK_DEFINED
uint16x4_t mask = ((x >> 2) & 1) ? pattern_2 : pattern_1;
#endif
#endif
void* ptr = &spTargetPixel[(x+x1) + (y) * spTargetScanLine];
#ifdef __SPARROW_INTERNAL_ZSET__
void* ztr = &spZBuffer[(x+x1) + (y) * spTargetScanLine];
int32x4_t zbuffer_4 = vld1q_s32( ztr );
#endif
if ((x == count - 4) && (x2-x1+1 != count))
{
#ifdef MASK_DEFINED
switch (count-(x2-x1+1))
{
case 3:
{
uint16x4_t new_mask = {0xffff,0,0,0};
mask = vand_u16(new_mask,mask);
}
break;
case 2:
{
uint16x4_t new_mask = {0xffff,0xffff,0,0};
mask = vand_u16(new_mask,mask);
}
break;
case 1:
{
uint16x4_t new_mask = {0xffff,0xffff,0xffff,0};
mask = vand_u16(new_mask,mask);
}
break;
}
#else
uint16x4_t mask;
switch (count-(x2-x1+1))
{
case 3:
{
uint16x4_t new_mask = {0xffff,0,0,0};
mask = new_mask;
}
break;
case 2:
{
uint16x4_t new_mask = {0xffff,0xffff,0,0};
mask = new_mask;
}
break;
case 1:
{
uint16x4_t new_mask = {0xffff,0xffff,0xffff,0};
mask = new_mask;
}
break;
}
#endif
uint16x4_t dest = vld1_u16(ptr);
pixel = vbsl_u16(mask,pixel,dest);
#if defined(__SPARROW_INTERNAL_ZBOTH__) || defined(__SPARROW_INTERNAL_ZSET__)
uint32x4_t mask32 = vmovl_u16(mask);
mask32 = vorrq_u32(mask32,vshlq_n_u32(mask32,16));
zbuffer_4 = vbslq_s32(mask32,z_4,zbuffer_4);
#endif
}
else
{
#ifdef MASK_DEFINED
uint16x4_t dest = vld1_u16(ptr);
pixel = vbsl_u16(mask,pixel,dest);
#if defined(__SPARROW_INTERNAL_ZBOTH__) || defined(__SPARROW_INTERNAL_ZSET__)
uint32x4_t mask32 = vmovl_u16(mask);
mask32 = vorrq_u32(mask32,vshlq_n_u32(mask32,16));
zbuffer_4 = vbslq_s32(mask32,z_4,zbuffer_4);
#endif
#endif
}
vst1_u16(ptr,pixel);
#if defined(__SPARROW_INTERNAL_ZBOTH__) || defined(__SPARROW_INTERNAL_ZSET__)
vst1q_s32(ztr,zbuffer_4);
#endif
}
#undef MASK_DEFINED
#else
for ( x = x1; x <= x2; x++ )
{
pixel_macro( x, y, z, u, v, w, color)
u += sU;
v += sV;
#ifdef __SPARROW_INTERNAL_PERSPECT__
w += sW;
#endif
#ifndef __SPARROW_INTERNAL_ZNOTHING__
z += sZ;
#endif
}
#endif
}
#ifndef __SPARROW_INTERNAL_BLENDING__
#ifdef __SPARROW_INTERNAL_PERSPECT__
#ifdef __SPARROW_INTERNAL_PATTERN__
#ifdef __SPARROW_INTERNAL_ALPHA__
#ifdef __SPARROW_INTERNAL_ZBOTH__
static void sp_intern_Triangle_tex_ztest_zset_alpha_pattern_perspect( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#elif defined __SPARROW_INTERNAL_ZTEST__
static void sp_intern_Triangle_tex_ztest_alpha_pattern_perspect( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#elif defined __SPARROW_INTERNAL_ZSET__
static void sp_intern_Triangle_tex_zset_alpha_pattern_perspect( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#else
static void sp_intern_Triangle_tex_alpha_pattern_perspect( Sint32 x1, Sint32 y1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#endif
#else
#ifdef __SPARROW_INTERNAL_ZBOTH__
static void sp_intern_Triangle_tex_ztest_zset_pattern_perspect( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#elif defined __SPARROW_INTERNAL_ZTEST__
static void sp_intern_Triangle_tex_ztest_pattern_perspect( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#elif defined __SPARROW_INTERNAL_ZSET__
static void sp_intern_Triangle_tex_zset_pattern_perspect( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#else
static void sp_intern_Triangle_tex_pattern_perspect( Sint32 x1, Sint32 y1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#endif
#endif
#else
#ifdef __SPARROW_INTERNAL_ALPHA__
#ifdef __SPARROW_INTERNAL_ZBOTH__
static void sp_intern_Triangle_tex_ztest_zset_alpha_perspect( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#elif defined __SPARROW_INTERNAL_ZTEST__
static void sp_intern_Triangle_tex_ztest_alpha_perspect( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#elif defined __SPARROW_INTERNAL_ZSET__
static void sp_intern_Triangle_tex_zset_alpha_perspect( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#else
static void sp_intern_Triangle_tex_alpha_perspect( Sint32 x1, Sint32 y1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#endif
#else
#ifdef __SPARROW_INTERNAL_ZBOTH__
static void sp_intern_Triangle_tex_ztest_zset_perspect( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#elif defined __SPARROW_INTERNAL_ZTEST__
static void sp_intern_Triangle_tex_ztest_perspect( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#elif defined __SPARROW_INTERNAL_ZSET__
static void sp_intern_Triangle_tex_zset_perspect( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#else
static void sp_intern_Triangle_tex_perspect( Sint32 x1, Sint32 y1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#endif
#endif
#endif
#else
#ifdef __SPARROW_INTERNAL_PATTERN__
#ifdef __SPARROW_INTERNAL_ALPHA__
#ifdef __SPARROW_INTERNAL_ZBOTH__
static void sp_intern_Triangle_tex_ztest_zset_alpha_pattern( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#elif defined __SPARROW_INTERNAL_ZTEST__
static void sp_intern_Triangle_tex_ztest_alpha_pattern( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#elif defined __SPARROW_INTERNAL_ZSET__
static void sp_intern_Triangle_tex_zset_alpha_pattern( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#else
static void sp_intern_Triangle_tex_alpha_pattern( Sint32 x1, Sint32 y1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 y2, Sint32 u2, Sint32 v2, Sint32 x3, Sint32 y3, Sint32 u3, Sint32 v3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#endif
#else
#ifdef __SPARROW_INTERNAL_ZBOTH__
static void sp_intern_Triangle_tex_ztest_zset_pattern( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#elif defined __SPARROW_INTERNAL_ZTEST__
static void sp_intern_Triangle_tex_ztest_pattern( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#elif defined __SPARROW_INTERNAL_ZSET__
static void sp_intern_Triangle_tex_zset_pattern( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#else
static void sp_intern_Triangle_tex_pattern( Sint32 x1, Sint32 y1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 y2, Sint32 u2, Sint32 v2, Sint32 x3, Sint32 y3, Sint32 u3, Sint32 v3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#endif
#endif
#else
#ifdef __SPARROW_INTERNAL_ALPHA__
#ifdef __SPARROW_INTERNAL_ZBOTH__
static void sp_intern_Triangle_tex_ztest_zset_alpha( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#elif defined __SPARROW_INTERNAL_ZTEST__
static void sp_intern_Triangle_tex_ztest_alpha( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#elif defined __SPARROW_INTERNAL_ZSET__
static void sp_intern_Triangle_tex_zset_alpha( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#else
static void sp_intern_Triangle_tex_alpha( Sint32 x1, Sint32 y1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 y2, Sint32 u2, Sint32 v2, Sint32 x3, Sint32 y3, Sint32 u3, Sint32 v3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#endif
#else
#ifdef __SPARROW_INTERNAL_ZBOTH__
static void sp_intern_Triangle_tex_ztest_zset( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#elif defined __SPARROW_INTERNAL_ZTEST__
static void sp_intern_Triangle_tex_ztest( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#elif defined __SPARROW_INTERNAL_ZSET__
static void sp_intern_Triangle_tex_zset( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#else
static void sp_intern_Triangle_tex( Sint32 x1, Sint32 y1, Sint32 u1, Sint32 v1, Sint32 x2, Sint32 y2, Sint32 u2, Sint32 v2, Sint32 x3, Sint32 y3, Sint32 u3, Sint32 v3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#endif
#endif
#endif
#endif
#else
#ifdef __SPARROW_INTERNAL_PERSPECT__
#ifdef __SPARROW_INTERNAL_PATTERN__
#ifdef __SPARROW_INTERNAL_ALPHA__
#ifdef __SPARROW_INTERNAL_ZBOTH__
static void sp_intern_Triangle_blending_tex_ztest_zset_alpha_pattern_perspect( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#elif defined __SPARROW_INTERNAL_ZTEST__
static void sp_intern_Triangle_blending_tex_ztest_alpha_pattern_perspect( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#elif defined __SPARROW_INTERNAL_ZSET__
static void sp_intern_Triangle_blending_tex_zset_alpha_pattern_perspect( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#else
static void sp_intern_Triangle_blending_tex_alpha_pattern_perspect( Sint32 x1, Sint32 y1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#endif
#else
#ifdef __SPARROW_INTERNAL_ZBOTH__
static void sp_intern_Triangle_blending_tex_ztest_zset_pattern_perspect( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#elif defined __SPARROW_INTERNAL_ZTEST__
static void sp_intern_Triangle_blending_tex_ztest_pattern_perspect( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#elif defined __SPARROW_INTERNAL_ZSET__
static void sp_intern_Triangle_blending_tex_zset_pattern_perspect( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#else
static void sp_intern_Triangle_blending_tex_pattern_perspect( Sint32 x1, Sint32 y1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#endif
#endif
#else
#ifdef __SPARROW_INTERNAL_ALPHA__
#ifdef __SPARROW_INTERNAL_ZBOTH__
static void sp_intern_Triangle_blending_tex_ztest_zset_alpha_perspect( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#elif defined __SPARROW_INTERNAL_ZTEST__
static void sp_intern_Triangle_blending_tex_ztest_alpha_perspect( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#elif defined __SPARROW_INTERNAL_ZSET__
static void sp_intern_Triangle_blending_tex_zset_alpha_perspect( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#else
static void sp_intern_Triangle_blending_tex_alpha_perspect( Sint32 x1, Sint32 y1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#endif
#else
#ifdef __SPARROW_INTERNAL_ZBOTH__
static void sp_intern_Triangle_blending_tex_ztest_zset_perspect( Sint32 x1, Sint32 y1, Sint32 z1, Sint32 u1, Sint32 v1, Sint32 w1, Sint32 x2, Sint32 y2, Sint32 z2, Sint32 u2, Sint32 v2, Sint32 w2, Sint32 x3, Sint32 y3, Sint32 z3, Sint32 u3, Sint32 v3, Sint32 w3, Uint32 color, Uint16* spTexturePixel, Sint32 spTextureScanLine, Sint32 spTextureX, Sint32 spTextureY, Uint8* spPattern, Sint32 spBlending )
#elif defined __SPARROW_INTERNAL_ZTEST__