diff options
| author | Leonard Kugis <leonard@kug.is> | 2026-10-05 01:36:32 +0200 |
|---|---|---|
| committer | Leonard Kugis <leonard@kug.is> | 2026-10-05 01:36:32 +0200 |
| commit | 57fdd82018e8f3449987cca19f3a41f630d7d62e (patch) | |
| tree | 50e8f0dfc58c9dd704ab12c7490b4a1898a02f72 /WinQuake/d_scan.c | |
| parent | 5ba1b06a2cbcbe9b2823dce3ac05663344075029 (diff) | |
| download | quake-pum-57fdd82018e8f3449987cca19f3a41f630d7d62e.tar.gz | |
Implemented PuM pipeline
Diffstat (limited to 'WinQuake/d_scan.c')
| -rw-r--r-- | WinQuake/d_scan.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/WinQuake/d_scan.c b/WinQuake/d_scan.c index 11863ba..6f8a033 100644 --- a/WinQuake/d_scan.c +++ b/WinQuake/d_scan.c @@ -25,6 +25,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "r_local.h"
#include "d_local.h"
+#include "pum_bridge.h"
+
unsigned char *r_turb_pbase, *r_turb_pdest;
fixed16_t r_turb_s, r_turb_t, r_turb_sstep, r_turb_tstep;
int *r_turb_turb;
@@ -418,6 +420,16 @@ void D_DrawZSpans (espan_t *pspan) zi = d_ziorigin + dv*d_zistepv + du*d_zistepu;
// we count on FP exceptions being turned off to avoid range problems
izi = (int)(zi * 0x8000 * 0x10000);
+#ifdef RENDER_PUM
+ if (PUM_Active ())
+ {
+ byte zi_b[2];
+ zi_b[0] = (byte)(izi & 0xFF);
+ zi_b[1] = (byte)((izi >> 8) & 0xFF);
+ PUM_EdgeSpanInit (zi_b, zi_b, 2);
+ izi = (int)zi_b[0] | ((int)zi_b[1] << 8);
+ }
+#endif
if ((long)pdest & 0x02)
{
|
