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

Method DrawExplicitDecal

extensions/olcPGEX_TransformedView.h:592–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590 }
591
592 void TransformedView::DrawExplicitDecal(olc::Decal* decal, const olc::vf2d* pos, const olc::vf2d* uv, const olc::Pixel* col, uint32_t elements)
593 {
594 std::vector<olc::vf2d> vTransformed(elements);
595 for (uint32_t n = 0; n < elements; n++)
596 vTransformed[n] = WorldToScreen(pos[n]);
597 pge->DrawExplicitDecal(decal, vTransformed.data(), uv, col, elements);
598 }
599
600 void TransformedView::DrawWarpedDecal(olc::Decal* decal, const olc::vf2d* pos, const olc::Pixel& tint)
601 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected