ref: e2e4c5b3848a7fe20a3fed5a5dda4d2cab0d129c
dir: /qw/d_zpoint.c/
// d_zpoint.c: software driver module for drawing z-buffered points #include "quakedef.h" /* ===================== D_DrawZPoint ===================== */ void D_DrawZPoint (void) { byte *pdest; short *pz; int izi; pz = d_pzbuffer + (d_zwidth * r_zpointdesc.v) + r_zpointdesc.u; pdest = d_viewbuffer + d_scantable[r_zpointdesc.v] + r_zpointdesc.u; izi = (int)(r_zpointdesc.zi * 0x8000); if (*pz <= izi) { *pz = izi; *pdest = r_zpointdesc.color; } }