mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-12 09:15:01 +03:00
feat(model): add CM2Model::AddRef
This commit is contained in:
2 files changed
+7
-2
No files matched your search
@@ -76,6 +76,10 @@ uint16_t CM2Model::Sub8260C0(M2Data* data, uint32_t sequenceId, int32_t a3) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
void CM2Model::AddRef() {
|
||||
this->m_refCount++;
|
||||
}
|
||||
|
||||
void CM2Model::Animate() {
|
||||
// TODO
|
||||
}
|
||||
@@ -754,7 +758,7 @@ int32_t CM2Model::Initialize(CM2Scene* scene, CM2Shared* shared, CM2Model* a4, u
|
||||
this->m_shared->AddRef();
|
||||
|
||||
if (a4) {
|
||||
a4->m_refCount++;
|
||||
a4->AddRef();
|
||||
}
|
||||
|
||||
this->m_flags = flags;
|
||||
@@ -1103,7 +1107,7 @@ void CM2Model::ProcessCallbacksRecursive() {
|
||||
return;
|
||||
}
|
||||
|
||||
this->m_refCount++;
|
||||
this->AddRef();
|
||||
|
||||
if (this->ProcessCallbacks()) {
|
||||
// TODO process attachments
|
||||
|
||||
@@ -135,6 +135,7 @@ class CM2Model {
|
||||
, m_flag200000(0)
|
||||
, m_flag400000(0)
|
||||
{};
|
||||
void AddRef();
|
||||
void Animate();
|
||||
void AnimateCamerasST();
|
||||
void AnimateMT(const C44Matrix* view, const C3Vector& a3, const C3Vector& a4, float a5, float a6);
|
||||
|
||||
Reference in new issue
Block a user