- move DrawArray and DrawElements to PolyTriangleDrawer

This commit is contained in:
Magnus Norddahl 2018-06-10 15:58:01 +02:00
commit a91147a3a5
14 changed files with 73 additions and 91 deletions

View file

@ -168,7 +168,7 @@ void RenderPolySprite::Render(PolyRenderThread *thread, AActor *thing, subsector
args.SetDepthTest(true);
args.SetWriteDepth(false);
args.SetWriteStencil(false);
args.DrawArray(thread->DrawQueue, vertices, 4, PolyDrawMode::TriangleFan);
PolyTriangleDrawer::DrawArray(thread->DrawQueue, args, vertices, 4, PolyDrawMode::TriangleFan);
}
double RenderPolySprite::GetSpriteFloorZ(AActor *thing, const DVector2 &thingpos)