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

Method UpdateSprite

olcPixelGameEngine.h:2215–2221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2213 }
2214
2215 void Decal::UpdateSprite()
2216 {
2217 if (sprite == nullptr) return;
2218 sprite->SetSize(width, height);
2219 renderer->ApplyTexture(id);
2220 renderer->ReadTexture(id, sprite);
2221 }
2222
2223 Decal::~Decal()
2224 {

Callers

nothing calls this directly

Calls 3

SetSizeMethod · 0.80
ApplyTextureMethod · 0.45
ReadTextureMethod · 0.45

Tested by

no test coverage detected