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

Method Decal

olcPixelGameEngine.h:2188–2197  ·  view source on GitHub ↗

O------------------------------------------------------------------------------O | olc::Decal IMPLEMENTATION | O------------------------------------------------------------------------------O

Source from the content-addressed store, hash-verified

2186 // | olc::Decal IMPLEMENTATION |
2187 // O------------------------------------------------------------------------------O
2188 Decal::Decal(olc::Sprite* spr, bool filter, bool clamp)
2189 {
2190 id = -1;
2191 if (spr == nullptr) return;
2192 width = spr->width;
2193 height = spr->height;
2194 sprite = spr;
2195 id = renderer->CreateTexture(sprite->width, sprite->height, filter, clamp);
2196 Update();
2197 }
2198
2199 Decal::Decal(const uint32_t nExistingTextureResource, olc::Sprite* spr)
2200 {

Callers 15

DrawStringDecalMethod · 0.80
DrawStringPropDecalMethod · 0.80
adv_FlushLayerMethod · 0.80
olc_CoreUpdateMethod · 0.80
DrawDecalFunction · 0.80
DoGPUTaskFunction · 0.80
OnAfterUserCreateMethod · 0.80
OnBeforeUserUpdateMethod · 0.80

Calls 1

CreateTextureMethod · 0.45

Tested by 4

OnUserUpdateMethod · 0.64
OnUserCreateMethod · 0.64
OnUserUpdateMethod · 0.64
OnUserUpdateMethod · 0.64