mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-26 17:46:38 -05:00
ec29f2633d
* Improve matches in ROI classes * More function implementations * Fix name * Fix vtables * Add annotation
68 lines
1.2 KiB
C++
68 lines
1.2 KiB
C++
#include "viewroi.h"
|
|
|
|
#include "decomp.h"
|
|
|
|
#include <vec.h>
|
|
|
|
DECOMP_SIZE_ASSERT(ViewROI, 0xe4)
|
|
|
|
// GLOBAL: LEGO1 0x101013d8
|
|
undefined g_unk101013d8 = 0;
|
|
|
|
// FUNCTION: LEGO1 0x100a9eb0
|
|
float ViewROI::IntrinsicImportance() const
|
|
{
|
|
return .5;
|
|
} // for now
|
|
|
|
// FUNCTION: LEGO1 0x100a9ec0
|
|
const Tgl::Group* ViewROI::GetGeometry() const
|
|
{
|
|
return geometry;
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100a9ed0
|
|
Tgl::Group* ViewROI::GetGeometry()
|
|
{
|
|
return geometry;
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100a9ee0
|
|
void ViewROI::UpdateWorldData(const Matrix4& parent2world)
|
|
{
|
|
OrientableROI::UpdateWorldData(parent2world);
|
|
|
|
if (geometry) {
|
|
Tgl::FloatMatrix4 matrix;
|
|
Matrix4 in(matrix);
|
|
SETMAT4(in, m_local2world);
|
|
Tgl::Result result = geometry->SetTransformation(matrix);
|
|
// assert(Tgl::Succeeded(result));
|
|
}
|
|
}
|
|
|
|
// STUB: LEGO1 0x100a9fc0
|
|
void ViewROI::VTable0x24(const Matrix4& p_transform)
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// STUB: LEGO1 0x100aa0a0
|
|
void ViewROI::SetLocalTransform(const Matrix4& p_transform)
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// STUB: LEGO1 0x100aa180
|
|
void ViewROI::VTable0x1c()
|
|
{
|
|
// TODO
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100aa500
|
|
undefined ViewROI::SetUnk101013d8(undefined p_flag)
|
|
{
|
|
undefined oldFlag = g_unk101013d8;
|
|
g_unk101013d8 = p_flag;
|
|
return oldFlag;
|
|
}
|