| 2959 | } |
| 2960 | |
| 2961 | void 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 | |
| 2972 | void AttachDecals(ASContext* context) { |
| 2973 | context->RegisterGlobalFunction("void ClearTemporaryDecals()", |
nothing calls this directly
no test coverage detected