MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / add

Method add

src/server/gui/core/resources/TextureDataManager.cpp:27–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27std::shared_ptr<TextureData> TextureDataManager::add(const TextureResource* key, bool tiled)
28{
29 remove(key);
30 std::shared_ptr<TextureData> data(new TextureData(tiled));
31 mTextures.push_front(data);
32 mTextureLookup[key] = mTextures.cbegin();
33 return data;
34}
35
36void TextureDataManager::remove(const TextureResource* key)
37{

Callers 1

TextureResourceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected