make the 3D renderer work per-scanline

This commit is contained in:
StapleButter
2017-05-21 20:14:03 +02:00
parent edc959dcf5
commit cb1b03b253
2 changed files with 415 additions and 11 deletions

View File

@ -22,6 +22,11 @@
namespace GPU3D
{
namespace SoftRenderer
{
class Slope;
}
typedef struct
{
s32 Position[4];
@ -59,6 +64,8 @@ typedef struct
bool IsShadow;
bool ClearStencil;
// data below rather specific to the software renderer
u32 VTop, VBottom; // vertex indices
s32 YTop, YBottom; // Y coords
s32 XTop, XBottom; // associated X coords