#include "jp/ggaf/dxcore/manager/GgafDxModelConnection.h"

#include "jp/ggaf/dxcore/model/GgafDxModel.h"

using namespace GgafCore;
using namespace GgafDxCore;

GgafDxModelConnection::GgafDxModelConnection(const char* prm_idstr, GgafDxModel* prm_pModel) :
    GgafResourceConnection<GgafDxModel> (prm_idstr, prm_pModel) {
}

void GgafDxModelConnection::processReleaseResource(GgafDxModel* prm_pResource) {
    _TRACE_("GgafDxModel="<<prm_pResource->getName()<<" を開放します。");
    prm_pResource->release(); //各モデルクラス側のrelease()実行。重要
    GGAF_DELETE(prm_pResource);
}

