MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / ASClearTemporaryDecals

Function ASClearTemporaryDecals

Source/Scripting/angelscript/asfuncs.cpp:2961–2970  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2959}
2960
2961void ASClearTemporaryDecals() {
2962 // the_scenegraph->decals->ClearTemporary();
2963 while (!the_scenegraph->dynamic_decals.empty()) {
2964 DecalObject* obj = the_scenegraph->dynamic_decals.front();
2965 obj->SetParent(NULL);
2966 the_scenegraph->UnlinkObject(obj);
2967 obj->Dispose();
2968 delete (obj);
2969 }
2970}
2971
2972void AttachDecals(ASContext* context) {
2973 context->RegisterGlobalFunction("void ClearTemporaryDecals()",

Callers

nothing calls this directly

Calls 5

emptyMethod · 0.45
frontMethod · 0.45
SetParentMethod · 0.45
UnlinkObjectMethod · 0.45
DisposeMethod · 0.45

Tested by

no test coverage detected