MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / DrawTriangleFlat

Method DrawTriangleFlat

extensions/olcPGEX_Graphics3D.h:660–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

658 }
659
660 void GFX3D::DrawTriangleFlat(olc::GFX3D::triangle &tri)
661 {
662 pge->FillTriangle((int32_t)tri.p[0].x, (int32_t)tri.p[0].y, (int32_t)tri.p[1].x, (int32_t)tri.p[1].y, (int32_t)tri.p[2].x, (int32_t)tri.p[2].y, tri.col[0]);
663 }
664
665 void GFX3D::DrawTriangleWire(olc::GFX3D::triangle &tri, olc::Pixel col)
666 {

Callers

nothing calls this directly

Calls 1

FillTriangleMethod · 0.45

Tested by

no test coverage detected