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

Method SetTargetDecal

extensions/olcPGEX_Shaders.h:646–653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

644 }
645
646 int32_t Shade::SetTargetDecal(olc::Decal* pDecal, const uint32_t nSlot)
647 {
648 slotTarget[nSlot].bInUse = true;
649 slotTarget[nSlot].nTargetResID = pDecal->id;
650 slotTarget[nSlot].vSize = olc::vi2d{ pDecal->sprite->width, pDecal->sprite->height };
651 slotTarget[nSlot].vInvSize = 1.0f / slotTarget[nSlot].vSize;
652 return 0;
653 }
654
655 int32_t Shade::Start(olc::Effect* pEffect)
656 {

Callers 1

OnUserUpdateMethod · 0.80

Calls

no outgoing calls

Tested by 1

OnUserUpdateMethod · 0.64