mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-22 23:48:12 -05:00
935ebe6910
* WIP * Match * Changes * Fix format * Style fixes * Update naming.yml * Match to ~85%
46 lines
916 B
C++
46 lines
916 B
C++
#include "viewroi.h"
|
|
|
|
#include "decomp.h"
|
|
|
|
DECOMP_SIZE_ASSERT(ViewROI, 0xe0)
|
|
|
|
// 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 Matrix4Data& parent2world)
|
|
{
|
|
OrientableROI::UpdateWorldData(parent2world);
|
|
if (geometry) {
|
|
Tgl::FloatMatrix4 mat;
|
|
SETMAT4(mat, m_local2world.GetMatrix());
|
|
Tgl::Result result = geometry->SetTransformation(mat);
|
|
// assert(Tgl::Succeeded(result));
|
|
}
|
|
}
|
|
|
|
// FUNCTION: LEGO1 0x100aa500
|
|
undefined ViewROI::SetUnk101013d8(undefined p_flag)
|
|
{
|
|
undefined oldFlag = g_unk101013d8;
|
|
g_unk101013d8 = p_flag;
|
|
return oldFlag;
|
|
}
|