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

Method adv_FlushLayerDecals

olcPixelGameEngine.h:4763–4770  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4761 }
4762
4763 void PixelGameEngine::adv_FlushLayerDecals(const size_t nLayerID)
4764 {
4765 // Display Decals in order for this layer
4766 auto& layer = vLayers[nLayerID];
4767 for (auto& decal : layer.vecDecalInstance)
4768 renderer->DrawDecal(decal);
4769 layer.vecDecalInstance.clear();
4770 }
4771
4772 void PixelGameEngine::adv_FlushLayerGPUTasks(const size_t nLayerID)
4773 {

Callers

nothing calls this directly

Calls 2

DrawDecalMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected