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

Method Update

olcPixelGameEngine.h:2205–2213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2203 }
2204
2205 void Decal::Update()
2206 {
2207 if (sprite == nullptr) return;
2208 width = sprite->width;
2209 height = sprite->height;
2210 vUVScale = { 1.0f / float(width), 1.0f / float(height) };
2211 renderer->ApplyTexture(id);
2212 renderer->UpdateTexture(id, sprite);
2213 }
2214
2215 void Decal::UpdateSprite()
2216 {

Callers 4

adv_FlushLayerMethod · 0.45
olc_CoreUpdateMethod · 0.45

Calls 2

ApplyTextureMethod · 0.45
UpdateTextureMethod · 0.45

Tested by

no test coverage detected