mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-22 23:48:12 -05:00
Bootstrap rest of LegoTexturePresenter (#374)
* Bootstrap rest of LegoTexturePresenter * Fixes --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
parent
d2b05a0983
commit
c6174c2a13
2 changed files with 21 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
#include "legoomni.h"
|
#include "legoomni.h"
|
||||||
#include "legovideomanager.h"
|
#include "legovideomanager.h"
|
||||||
|
#include "mxcompositepresenter.h"
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x1004eb40
|
// FUNCTION: LEGO1 0x1004eb40
|
||||||
LegoTexturePresenter::~LegoTexturePresenter()
|
LegoTexturePresenter::~LegoTexturePresenter()
|
||||||
|
@ -15,3 +16,21 @@ MxResult LegoTexturePresenter::AddToManager()
|
||||||
VideoManager()->AddPresenter(*this);
|
VideoManager()->AddPresenter(*this);
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// STUB: LEGO1 0x1004fc60
|
||||||
|
MxResult LegoTexturePresenter::PutData()
|
||||||
|
{
|
||||||
|
// TODO
|
||||||
|
return FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
|
// FUNCTION: LEGO1 0x1004fcb0
|
||||||
|
void LegoTexturePresenter::DoneTickle()
|
||||||
|
{
|
||||||
|
if (this->m_compositePresenter && !this->m_compositePresenter->VTable0x64(2)) {
|
||||||
|
SetTickleState(TickleState_Idle);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
MxMediaPresenter::DoneTickle();
|
||||||
|
}
|
||||||
|
|
|
@ -22,7 +22,9 @@ class LegoTexturePresenter : public MxMediaPresenter {
|
||||||
return !strcmp(p_name, LegoTexturePresenter::ClassName()) || MxMediaPresenter::IsA(p_name);
|
return !strcmp(p_name, LegoTexturePresenter::ClassName()) || MxMediaPresenter::IsA(p_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual void DoneTickle() override; // vtable+0x2c
|
||||||
virtual MxResult AddToManager() override; // vtable+0x34
|
virtual MxResult AddToManager() override; // vtable+0x34
|
||||||
|
virtual MxResult PutData() override; // vtable+0x4c
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // LEGOTEXTUREPRESENTER_H
|
#endif // LEGOTEXTUREPRESENTER_H
|
||||||
|
|
Loading…
Reference in a new issue