TWINE: renamed method

This commit is contained in:
Martin Gerhardy 2021-10-10 10:53:59 +02:00
parent 808516dc2f
commit 2d6abce5ca
2 changed files with 4 additions and 4 deletions

View File

@ -1003,7 +1003,7 @@ void Renderer::renderPolygonsMarble(int vtop, int32 vsize, uint8 colorStart, uin
}
}
void Renderer::renderPolygonsTriche(int vtop, int32 vsize, uint8 color) const {
void Renderer::renderPolygonsSimplified(int vtop, int32 vsize, uint8 color) const {
uint8 *out = (uint8 *)_engine->_frontVideoBuffer.getBasePtr(0, vtop);
const int16 *ptr1 = &_polyTab[vtop];
const int16 *ptr2 = &_colorProgressionBuffer[vtop];
@ -1068,14 +1068,14 @@ void Renderer::fillVertices(int vtop, int32 vsize, uint8 renderType, uint8 color
break;
case POLYGONTYPE_GOURAUD:
if (_engine->_cfgfile.PolygonDetails == 0) {
renderPolygonsTriche(vtop, vsize, colorStart);
renderPolygonsSimplified(vtop, vsize, colorStart);
} else {
renderPolygonsGouraud(vtop, vsize);
}
break;
case POLYGONTYPE_DITHER:
if (_engine->_cfgfile.PolygonDetails == 0) {
renderPolygonsTriche(vtop, vsize, colorStart);
renderPolygonsSimplified(vtop, vsize, colorStart);
} else if (_engine->_cfgfile.PolygonDetails == 1) {
renderPolygonsGouraud(vtop, vsize);
} else {

View File

@ -194,7 +194,7 @@ private:
void renderPolygonsGouraud(int vtop, int32 vsize) const;
void renderPolygonsDither(int vtop, int32 vsize) const;
void renderPolygonsMarble(int vtop, int32 vsize, uint8 colorStart, uint8 colorEnd) const;
void renderPolygonsTriche(int vtop, int32 vsize, uint8 color) const;
void renderPolygonsSimplified(int vtop, int32 vsize, uint8 color) const;
void computePolygons(int16 polyRenderType, const Vertex *vertices, int32 numVertices);
const RenderCommand *depthSortRenderCommands(int32 numOfPrimitives);