mirror of
https://github.com/isledecomp/isle.git
synced 2025-12-09 23:53:02 +00:00
Add BETA10 addresses for LegoROI and others (#1569)
--------- Co-authored-by: jonschz <jonschz@users.noreply.github.com>
This commit is contained in:
@@ -16,65 +16,60 @@ float ViewROI::IntrinsicImportance() const
|
||||
} // for now
|
||||
|
||||
// FUNCTION: LEGO1 0x100a9ec0
|
||||
// FUNCTION: BETA10 0x1018c740
|
||||
Tgl::Group* ViewROI::GetGeometry()
|
||||
{
|
||||
return geometry;
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100a9ed0
|
||||
// FUNCTION: BETA10 0x1018c760
|
||||
const Tgl::Group* ViewROI::GetGeometry() const
|
||||
{
|
||||
return geometry;
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100a9ee0
|
||||
// FUNCTION: BETA10 0x1018c780
|
||||
void ViewROI::UpdateWorldDataWithTransformAndChildren(const Matrix4& parent2world)
|
||||
{
|
||||
OrientableROI::UpdateWorldDataWithTransformAndChildren(parent2world);
|
||||
SetGeometryTransformation();
|
||||
}
|
||||
|
||||
// FUNCTION: BETA10 0x1018c7b0
|
||||
inline void ViewROI::SetGeometryTransformation()
|
||||
{
|
||||
if (geometry) {
|
||||
Tgl::FloatMatrix4 matrix;
|
||||
Matrix4 in(matrix);
|
||||
SETMAT4(in, m_local2world);
|
||||
Tgl::Result result = geometry->SetTransformation(matrix);
|
||||
// assert(Tgl::Succeeded(result));
|
||||
geometry->SetTransformation(matrix);
|
||||
}
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100a9fc0
|
||||
// FUNCTION: BETA10 0x1018cad0
|
||||
void ViewROI::UpdateWorldDataWithTransform(const Matrix4& p_transform)
|
||||
{
|
||||
OrientableROI::UpdateWorldDataWithTransform(p_transform);
|
||||
if (geometry) {
|
||||
Tgl::FloatMatrix4 matrix;
|
||||
Matrix4 in(matrix);
|
||||
SETMAT4(in, m_local2world);
|
||||
geometry->SetTransformation(matrix);
|
||||
}
|
||||
SetGeometryTransformation();
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100aa0a0
|
||||
// FUNCTION: BETA10 0x1018cb00
|
||||
void ViewROI::SetLocal2WorldWithWorldDataUpdate(const Matrix4& p_transform)
|
||||
{
|
||||
OrientableROI::SetLocal2WorldWithWorldDataUpdate(p_transform);
|
||||
if (geometry) {
|
||||
Tgl::FloatMatrix4 matrix;
|
||||
Matrix4 in(matrix);
|
||||
SETMAT4(in, m_local2world);
|
||||
geometry->SetTransformation(matrix);
|
||||
}
|
||||
SetGeometryTransformation();
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100aa180
|
||||
// FUNCTION: BETA10 0x1018cb30
|
||||
void ViewROI::UpdateWorldData()
|
||||
{
|
||||
OrientableROI::UpdateWorldData();
|
||||
if (geometry) {
|
||||
Tgl::FloatMatrix4 matrix;
|
||||
Matrix4 in(matrix);
|
||||
SETMAT4(in, m_local2world);
|
||||
geometry->SetTransformation(matrix);
|
||||
}
|
||||
SetGeometryTransformation();
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100aa500
|
||||
|
||||
Reference in New Issue
Block a user