Last change
on this file since 80 was
80,
checked in by Sam Hocevar, 14 years ago
|
- Adding the Golgotha source code. Not sure what's going to be interesting
in there, but since it's all public domain, there's certainly stuff to
pick up.
|
File size:
1.2 KB
|
Line | |
---|
1 | /********************************************************************** <BR>
|
---|
2 | This file is part of Crack dot Com's free source code release of
|
---|
3 | Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
|
---|
4 | information about compiling & licensing issues visit this URL</a>
|
---|
5 | <PRE> If that doesn't help, contact Jonathan Clark at
|
---|
6 | golgotha_source@usa.net (Subject should have "GOLG" in it)
|
---|
7 | ***********************************************************************/
|
---|
8 |
|
---|
9 | #include "software/r1_software_globals.hh"
|
---|
10 |
|
---|
11 | void texture_scanline_solid_fill(w16 *start_pixel,
|
---|
12 | sw32 start_x,
|
---|
13 | void *left,//solid_blend_span *left,
|
---|
14 | sw32 width)
|
---|
15 | {
|
---|
16 | __asm
|
---|
17 | {
|
---|
18 | mov edi,left
|
---|
19 | mov ecx,width
|
---|
20 |
|
---|
21 | mov eax,[edi]solid_blend_span.color
|
---|
22 | mov edi,start_pixel
|
---|
23 |
|
---|
24 | add edi,start_x
|
---|
25 | nop
|
---|
26 |
|
---|
27 | test ecx,1 //even # of pixels?
|
---|
28 | jz start_loop //yes, begin looped drawing
|
---|
29 |
|
---|
30 | //no, draw single pixel 1st
|
---|
31 | mov word ptr [edi],ax
|
---|
32 | add edi,2
|
---|
33 | dec ecx
|
---|
34 | jz done
|
---|
35 |
|
---|
36 | start_loop:
|
---|
37 | shr ecx,1
|
---|
38 | rep stosd
|
---|
39 |
|
---|
40 | done:
|
---|
41 |
|
---|
42 | }
|
---|
43 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.