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

Method GradientTriangleDecal

olcPixelGameEngine.h:3836–3842  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3834 }
3835
3836 void PixelGameEngine::GradientTriangleDecal(const olc::vf2d& p0, const olc::vf2d& p1, const olc::vf2d& p2, const olc::Pixel c0, const olc::Pixel c1, const olc::Pixel c2)
3837 {
3838 std::array<olc::vf2d, 4> points = { { p0, p1, p2 } };
3839 std::array<olc::vf2d, 4> uvs = { {{0,0},{0,0},{0,0}} };
3840 std::array<olc::Pixel, 4> cols = { {c0, c1, c2} };
3841 DrawExplicitDecal(nullptr, points.data(), uvs.data(), cols.data(), 3);
3842 }
3843
3844 void PixelGameEngine::DrawRotatedDecal(const olc::vf2d& pos, olc::Decal* decal, const float fAngle, const olc::vf2d& center, const olc::vf2d& scale, const olc::Pixel& tint)
3845 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected