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

Method SetDrawTarget

olcPixelGameEngine.h:2549–2561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2547#endif
2548
2549 void PixelGameEngine::SetDrawTarget(Sprite* target)
2550 {
2551 if (target)
2552 {
2553 pDrawTarget = target;
2554 }
2555 else
2556 {
2557 nTargetLayer = 0;
2558 if (!vLayers.empty())
2559 pDrawTarget = vLayers[0].pDrawTarget.Sprite();
2560 }
2561 }
2562
2563 void PixelGameEngine::SetDrawTarget(uint8_t layer, bool bDirty)
2564 {

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.80
SpriteMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected