diff options
author | StapleButter <thetotalworm@gmail.com> | 2017-04-09 16:12:12 +0200 |
---|---|---|
committer | StapleButter <thetotalworm@gmail.com> | 2017-04-09 16:12:12 +0200 |
commit | de4b046232274e8cdffde1345fe5e1a2b2a98e1c (patch) | |
tree | 90dbefff26ceb5d5625931da4e97926d08e3a742 /src/GPU3D_Soft.cpp | |
parent | 28ebd56fb8f0df6d13b2077f3f499a1456df6528 (diff) |
* more accurate flags (push/pop busy, test busy, vertex/poly overflow)
* more versatile and better clipping code
Diffstat (limited to 'src/GPU3D_Soft.cpp')
-rw-r--r-- | src/GPU3D_Soft.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/GPU3D_Soft.cpp b/src/GPU3D_Soft.cpp index a981bd5..f15761c 100644 --- a/src/GPU3D_Soft.cpp +++ b/src/GPU3D_Soft.cpp @@ -769,6 +769,14 @@ void RenderPolygon(Polygon* polygon) if (rslope > 0) dxr += rslope; else dxr -= rslope; } + + /*for (int i = 0; i < polygon->NumVertices; i++) + { + Vertex* vtx = polygon->Vertices[i]; + u32 addr = vtx->FinalPosition[0] + (vtx->FinalPosition[1]*256); + if (addr < 256*192) + ColorBuffer[addr] = 0x1F3F003F; + }*/ } void RenderFrame(Vertex* vertices, Polygon* polygons, int npolys) |