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

Method DrawSprite

extensions/olcPGEX_TransformedView.h:484–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482 }
483
484 void TransformedView::DrawSprite(float x, float y, olc::Sprite* sprite, float scalex, float scaley, uint8_t flip)
485 {
486 DrawSprite({ x, y }, sprite, { scalex, scaley }, flip);
487 }
488
489 void TransformedView::DrawSprite(const olc::vf2d & pos, olc::Sprite * sprite, const olc::vf2d & scale, uint8_t flip)
490 {

Callers

nothing calls this directly

Calls 6

ScreenWidthMethod · 0.80
ScreenHeightMethod · 0.80
maxMethod · 0.45
minMethod · 0.45
DrawMethod · 0.45
SampleMethod · 0.45

Tested by

no test coverage detected