Last change
on this file since 80 was
80,
checked in by Sam Hocevar, 15 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.3 KB
|
Rev | Line | |
---|
[80] | 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 | #include "software/inline_fpu.hh"
|
---|
| 11 |
|
---|
| 12 | void texture_scanline_affine_unlit(w16 *start_pixel,
|
---|
| 13 | sw32 start_x,
|
---|
| 14 | void *_left,//perspective_span *left,
|
---|
| 15 | sw32 width)
|
---|
| 16 | {
|
---|
| 17 | start_pixel = (w16 *)((w8 *)start_pixel + start_x);
|
---|
| 18 |
|
---|
| 19 | affine_span *left = (affine_span *)_left;
|
---|
| 20 |
|
---|
| 21 | left_s = left->s + cur_grads.s_adjust;
|
---|
| 22 | left_t = left->t + cur_grads.t_adjust;
|
---|
| 23 |
|
---|
| 24 | temp_dsdx = qftoi(cur_grads.dsdx);
|
---|
| 25 | temp_dtdx = qftoi(cur_grads.dtdx);
|
---|
| 26 |
|
---|
| 27 | width_global = width;
|
---|
| 28 |
|
---|
| 29 | while (width_global)
|
---|
| 30 | {
|
---|
| 31 | *start_pixel = *(r1_software_texture_ptr + (left_s>>16) + ((left_t>>16)<<r1_software_twidth_log2));
|
---|
| 32 |
|
---|
| 33 | start_pixel++;
|
---|
| 34 |
|
---|
| 35 | left_s += temp_dsdx;
|
---|
| 36 | left_t += temp_dtdx;
|
---|
| 37 |
|
---|
| 38 | width_global--;
|
---|
| 39 | }
|
---|
| 40 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.