MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / CustomModel_Undefine

Function CustomModel_Undefine

src/Model.c:901–907  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

899}
900
901void CustomModel_Undefine(struct CustomModel* cm) {
902 if (!cm->defined) return;
903 if (cm->registered) Model_Unregister((struct Model*)cm);
904
905 Mem_Free(cm->model.vertices);
906 Mem_Set(cm, 0, sizeof(struct CustomModel));
907}
908
909static void CustomModel_FreeAll(void) {
910 int i;

Callers 3

CustomModel_FreeAllFunction · 0.85
CPE_DefineModelFunction · 0.85
CPE_UndefineModelFunction · 0.85

Calls 3

Model_UnregisterFunction · 0.85
Mem_SetFunction · 0.85
Mem_FreeFunction · 0.70

Tested by

no test coverage detected