mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
rename functions and parameters in OrientableROI (#1512)
This commit is contained in:
@@ -17,15 +17,15 @@ OrientableROI::OrientableROI()
|
||||
IDENTMAT4(m_local2world);
|
||||
|
||||
m_parentROI = NULL;
|
||||
ToggleUnknown0xd8(TRUE);
|
||||
SetNeedsWorldDataUpdate(TRUE);
|
||||
}
|
||||
|
||||
// Maybe an overload based on MxMatrix type
|
||||
// FUNCTION: LEGO1 0x100a46a0
|
||||
// FUNCTION: BETA10 0x10165268
|
||||
void OrientableROI::WrappedSetLocalTransform(const Matrix4& p_transform)
|
||||
void OrientableROI::WrappedSetLocal2WorldWithWorldDataUpdate(const Matrix4& p_local2world)
|
||||
{
|
||||
SetLocalTransform(p_transform);
|
||||
SetLocal2WorldWithWorldDataUpdate(p_local2world);
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100a46b0
|
||||
@@ -57,14 +57,14 @@ void OrientableROI::UpdateTransformationRelativeToParent(const Matrix4& p_transf
|
||||
}
|
||||
}
|
||||
|
||||
UpdateWorldData(mat);
|
||||
UpdateWorldDataWithTransformAndChildren(mat);
|
||||
}
|
||||
|
||||
// Maybe an overload based on MxMatrix type
|
||||
// FUNCTION: LEGO1 0x100a5090
|
||||
void OrientableROI::WrappedVTable0x24(const Matrix4& p_transform)
|
||||
void OrientableROI::WrappedUpdateWorldDataWithTransform(const Matrix4& p_transform)
|
||||
{
|
||||
VTable0x24(p_transform);
|
||||
UpdateWorldDataWithTransform(p_transform);
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100a50a0
|
||||
@@ -101,21 +101,21 @@ void OrientableROI::GetLocalTransform(Matrix4& p_transform)
|
||||
|
||||
// FUNCTION: LEGO1 0x100a58f0
|
||||
// FUNCTION: BETA10 0x10167b77
|
||||
void OrientableROI::FUN_100a58f0(const Matrix4& p_transform)
|
||||
void OrientableROI::SetLocal2World(const Matrix4& p_local2world)
|
||||
{
|
||||
m_local2world = p_transform;
|
||||
ToggleUnknown0xd8(TRUE);
|
||||
m_local2world = p_local2world;
|
||||
SetNeedsWorldDataUpdate(TRUE);
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100a5910
|
||||
void OrientableROI::VTable0x1c()
|
||||
void OrientableROI::UpdateWorldData()
|
||||
{
|
||||
UpdateWorldBoundingVolumes();
|
||||
UpdateWorldVelocity();
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100a5930
|
||||
void OrientableROI::SetLocalTransform(const Matrix4& p_transform)
|
||||
void OrientableROI::SetLocal2WorldWithWorldDataUpdate(const Matrix4& p_transform)
|
||||
{
|
||||
m_local2world = p_transform;
|
||||
UpdateWorldBoundingVolumes();
|
||||
@@ -123,7 +123,7 @@ void OrientableROI::SetLocalTransform(const Matrix4& p_transform)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100a5960
|
||||
void OrientableROI::VTable0x24(const Matrix4& p_transform)
|
||||
void OrientableROI::UpdateWorldDataWithTransform(const Matrix4& p_transform)
|
||||
{
|
||||
MxMatrix l_matrix(m_local2world);
|
||||
m_local2world.Product(p_transform, l_matrix);
|
||||
@@ -132,7 +132,7 @@ void OrientableROI::VTable0x24(const Matrix4& p_transform)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100a59b0
|
||||
void OrientableROI::UpdateWorldData(const Matrix4& p_transform)
|
||||
void OrientableROI::UpdateWorldDataWithTransformAndChildren(const Matrix4& p_transform)
|
||||
{
|
||||
MxMatrix l_matrix(m_local2world);
|
||||
m_local2world.Product(l_matrix, p_transform);
|
||||
@@ -143,13 +143,13 @@ void OrientableROI::UpdateWorldData(const Matrix4& p_transform)
|
||||
if (comp) {
|
||||
for (CompoundObject::iterator iter = comp->begin(); !(iter == comp->end()); iter++) {
|
||||
ROI* child = *iter;
|
||||
static_cast<OrientableROI*>(child)->UpdateWorldData(p_transform);
|
||||
static_cast<OrientableROI*>(child)->UpdateWorldDataWithTransformAndChildren(p_transform);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100a5a30
|
||||
void OrientableROI::FUN_100a5a30(const Vector3& p_world_velocity)
|
||||
void OrientableROI::SetWorldVelocity(const Vector3& p_world_velocity)
|
||||
{
|
||||
m_world_velocity = p_world_velocity;
|
||||
}
|
||||
|
@@ -23,21 +23,21 @@ public:
|
||||
const BoundingSphere& GetWorldBoundingSphere() const override; // vtable+0x10
|
||||
|
||||
// FUNCTION: LEGO1 0x100a5db0
|
||||
virtual void VTable0x14() { VTable0x1c(); } // vtable+0x14
|
||||
virtual void WrappedUpdateWorldData() { UpdateWorldData(); } // vtable+0x14
|
||||
|
||||
virtual void UpdateWorldBoundingVolumes() = 0; // vtable+0x18
|
||||
virtual void VTable0x1c(); // vtable+0x1c
|
||||
virtual void SetLocalTransform(const Matrix4& p_transform); // vtable+0x20
|
||||
virtual void VTable0x24(const Matrix4& p_transform); // vtable+0x24
|
||||
virtual void UpdateWorldData(const Matrix4& p_transform); // vtable+0x28
|
||||
virtual void UpdateWorldVelocity(); // vtable+0x2c
|
||||
virtual void UpdateWorldBoundingVolumes() = 0; // vtable+0x18
|
||||
virtual void UpdateWorldData(); // vtable+0x1c
|
||||
virtual void SetLocal2WorldWithWorldDataUpdate(const Matrix4& p_local2world); // vtable+0x20
|
||||
virtual void UpdateWorldDataWithTransform(const Matrix4& p_transform); // vtable+0x24
|
||||
virtual void UpdateWorldDataWithTransformAndChildren(const Matrix4& p_transform); // vtable+0x28
|
||||
virtual void UpdateWorldVelocity(); // vtable+0x2c
|
||||
|
||||
void WrappedSetLocalTransform(const Matrix4& p_transform);
|
||||
void WrappedSetLocal2WorldWithWorldDataUpdate(const Matrix4& p_local2world);
|
||||
void UpdateTransformationRelativeToParent(const Matrix4& p_transform);
|
||||
void WrappedVTable0x24(const Matrix4& p_transform);
|
||||
void WrappedUpdateWorldDataWithTransform(const Matrix4& p_transform);
|
||||
void GetLocalTransform(Matrix4& p_transform);
|
||||
void FUN_100a58f0(const Matrix4& p_transform);
|
||||
void FUN_100a5a30(const Vector3& p_world_velocity);
|
||||
void SetLocal2World(const Matrix4& p_local2world);
|
||||
void SetWorldVelocity(const Vector3& p_world_velocity);
|
||||
|
||||
// FUNCTION: BETA10 0x1000fbf0
|
||||
const Matrix4& GetLocal2World() const { return m_local2world; }
|
||||
@@ -57,9 +57,9 @@ public:
|
||||
void SetParentROI(OrientableROI* p_parentROI) { m_parentROI = p_parentROI; }
|
||||
|
||||
// FUNCTION: BETA10 0x10168800
|
||||
void ToggleUnknown0xd8(BOOL p_enable)
|
||||
void SetNeedsWorldDataUpdate(BOOL p_needsWorldDataUpdate)
|
||||
{
|
||||
if (p_enable) {
|
||||
if (p_needsWorldDataUpdate) {
|
||||
m_unk0xd8 |= c_bit1 | c_bit2;
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user