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

Method Create

olcPixelGameEngine.h:2232–2236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2230 }
2231
2232 void Renderable::Create(uint32_t width, uint32_t height, bool filter, bool clamp)
2233 {
2234 pSprite = std::make_unique<olc::Sprite>(width, height);
2235 pDecal = std::make_unique<olc::Decal>(pSprite.get(), filter, clamp);
2236 }
2237
2238 olc::rcode Renderable::Load(const std::string& sFile, ResourcePack* pack, bool filter, bool clamp)
2239 {

Callers 8

SetScreenSizeMethod · 0.80
CreateLayerMethod · 0.80
OnAfterUserCreateMethod · 0.80
OnBeforeUserCreateMethod · 0.80
OnUserCreateMethod · 0.80
OnUserCreateMethod · 0.80

Calls

no outgoing calls

Tested by 2

OnUserCreateMethod · 0.64
OnUserCreateMethod · 0.64