version 1.5 | | version 1.6 |
---|
| | |
* Routines to draw the texture mapped scanlines. | | * Routines to draw the texture mapped scanlines. |
* | | * |
* $Log$ | | * $Log$ |
| | * Revision 1.6 2001/07/27 19:45:05 donut |
| | * gcc 3.0 compile fixes |
| | * |
* Revision 1.5 1999/12/08 01:08:10 donut | | * Revision 1.5 1999/12/08 01:08:10 donut |
* Falk Hueffner's updated fp_tmap, plus my own code to allow runtime selection of tmap routines | | * Falk Hueffner's updated fp_tmap, plus my own code to allow runtime selection of tmap routines |
* | | * |
| | |
void c_tmap_scanline_shaded() | | void c_tmap_scanline_shaded() |
{ | | { |
int fade; | | int fade; |
ubyte *dest; | | ubyte *dest, tmp; |
int x; | | int x; |
| | |
dest = (ubyte *)(write_buffer + fx_xleft + (bytes_per_row * fx_y) ); | | dest = (ubyte *)(write_buffer + fx_xleft + (bytes_per_row * fx_y) ); |
| | |
fade = tmap_flat_shade_value<<8; | | fade = tmap_flat_shade_value<<8; |
for (x= fx_xright-fx_xleft+1 ; x > 0; --x ) { | | for (x= fx_xright-fx_xleft+1 ; x > 0; --x ) { |
*dest++ = gr_fade_table[ fade |(*dest)]; | | tmp = *dest; |
| | *dest++ = gr_fade_table[ fade |(tmp)]; |
} | | } |
} | | } |
| | |