| 83 | } |
| 84 | |
| 85 | LAppModel::~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 | |
| 111 | void LAppModel::LoadAssets(const csmChar* dir, const csmChar* fileName) |
| 112 | { |
nothing calls this directly
no test coverage detected