MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / resetAll

Method resetAll

source/ui/data/boxedTexture.cpp:26–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24static std::set<BoxedTexture*> textures;
25
26void BoxedTexture::resetAll() {
27 for (auto& t : textures) {
28 t->unload();
29 }
30 textures.clear();
31}
32
33BoxedTexture::BoxedTexture(std::function<void* ()> loadTexture) : texture(nullptr), loadTexture(loadTexture) {
34 textures.insert(this);

Callers

nothing calls this directly

Calls 2

unloadMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected