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

Method SetLayerCustomRenderFunction

olcPixelGameEngine.h:2603–2606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2601 }
2602
2603 void PixelGameEngine::SetLayerCustomRenderFunction(uint8_t layer, std::function<void()> f)
2604 {
2605 if (layer < vLayers.size()) vLayers[layer].funcHook = f;
2606 }
2607
2608 std::vector<LayerDesc>& PixelGameEngine::GetLayers()
2609 {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected