mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 00:44:21 +00:00
Fix LegoROI / add TimeROI (#572)
* Fix LegoROI / add TimeROI * Fix order * Remove extra fwd decl
This commit is contained in:
committed by
GitHub
parent
b47412183b
commit
332d8da695
@@ -71,7 +71,7 @@ MxResult LegoUnkSaveDataWriter::WriteSaveData3(LegoStorage* p_stream)
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10083500
|
||||
AutoROI* LegoUnkSaveDataWriter::FUN_10083500(char*, undefined4)
|
||||
LegoROI* LegoUnkSaveDataWriter::FUN_10083500(char*, undefined4)
|
||||
{
|
||||
// TODO
|
||||
// involves an STL map with a _Nil node at 0x100fc508
|
||||
|
||||
@@ -204,7 +204,7 @@ void LegoWorld::Destroy(MxBool p_fromDestructor)
|
||||
}
|
||||
|
||||
while (!m_list0xe0.empty()) {
|
||||
AutoROI* roi = m_list0xe0.front();
|
||||
LegoROI* roi = m_list0xe0.front();
|
||||
m_list0xe0.pop_front();
|
||||
delete roi;
|
||||
}
|
||||
|
||||
@@ -132,9 +132,9 @@ void LegoModelPresenter::ParseExtra()
|
||||
}
|
||||
else if (KeyValueStringParse(output, g_dbCreate, buffer) != 0 && m_roi == NULL) {
|
||||
LegoWorld* currentWorld = CurrentWorld();
|
||||
list<AutoROI*>& roiList = currentWorld->GetUnknownList0xe0();
|
||||
list<LegoROI*>& roiList = currentWorld->GetUnknownList0xe0();
|
||||
|
||||
for (list<AutoROI*>::iterator it = roiList.begin(); it != roiList.end(); it++) {
|
||||
for (list<LegoROI*>::iterator it = roiList.begin(); it != roiList.end(); it++) {
|
||||
if (!strcmpi(((LegoROI*) (*it))->GetName(), output)) {
|
||||
m_roi = *it;
|
||||
roiList.erase(it);
|
||||
|
||||
@@ -183,7 +183,7 @@ MxResult LegoVideoManager::Create(MxVideoParam& p_videoParam, MxU32 p_frequencyM
|
||||
}
|
||||
|
||||
pLODList = m_3dManager->GetViewLODListManager()->Create("CameraROI", 1);
|
||||
m_viewROI = new LegoROI(m_renderer, pLODList, Timer()->GetTime());
|
||||
m_viewROI = new TimeROI(m_renderer, pLODList, Timer()->GetTime());
|
||||
pLODList->Release();
|
||||
|
||||
CalcLocalTransform(posVec, dirVec, upVec, outMatrix);
|
||||
|
||||
Reference in New Issue
Block a user