MCPcopy Create free account
hub / github.com/axmolengine/axmol / ~LAppModel

Method ~LAppModel

tests/live2d-tests/Source/LAppModel.cpp:85–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85LAppModel::~LAppModel()
86{
87 if (_debugMode)LAppPal::PrintLog("[APP]delete model: %s", _modelSetting->GetModelFileName());
88
89 if (_renderSprite)
90 {
91 // Cocos本体が消滅した後ではこの呼び出しが出来ないことに注意
92 _renderSprite->removeFromParentAndCleanup(true);
93 _renderSprite = NULL;
94 }
95 _renderBuffer->DestroyOffscreenFrame();
96
97 ReleaseMotions();
98 ReleaseExpressions();
99
100 for (csmInt32 i = 0; i < _modelSetting->GetMotionGroupCount(); i++)
101 {
102 const csmChar* group = _modelSetting->GetMotionGroupName(i);
103 ReleaseMotionGroup(group);
104 }
105 CSM_DELETE(_modelSetting);
106
107 //cocos2d
108 Director::getInstance()->getTextureCache()->removeAllTextures();
109}
110
111void LAppModel::LoadAssets(const csmChar* dir, const csmChar* fileName)
112{

Callers

nothing calls this directly

Calls 8

getInstanceFunction · 0.85
GetModelFileNameMethod · 0.80
DestroyOffscreenFrameMethod · 0.80
GetMotionGroupCountMethod · 0.80
GetMotionGroupNameMethod · 0.80
removeAllTexturesMethod · 0.80
getTextureCacheMethod · 0.80

Tested by

no test coverage detected