mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-16 21:11:15 +00:00
Add matches for other ROIs
This commit is contained in:
parent
6bd81e300f
commit
3efa4bac86
@ -93,6 +93,7 @@ class LegoROI : public ViewROI {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// VTABLE: LEGO1 0x100dbea8
|
// VTABLE: LEGO1 0x100dbea8
|
||||||
|
// VTABLE: BETA10 0x101c38d0
|
||||||
// SIZE 0x10c
|
// SIZE 0x10c
|
||||||
class TimeROI : public LegoROI {
|
class TimeROI : public LegoROI {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -108,6 +108,7 @@ void OrientableROI::SetLocal2World(const Matrix4& p_local2world)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100a5910
|
// FUNCTION: LEGO1 0x100a5910
|
||||||
|
// FUNCTION: BETA10 0x10167bac
|
||||||
void OrientableROI::UpdateWorldData()
|
void OrientableROI::UpdateWorldData()
|
||||||
{
|
{
|
||||||
UpdateWorldBoundingVolumes();
|
UpdateWorldBoundingVolumes();
|
||||||
@ -115,6 +116,7 @@ void OrientableROI::UpdateWorldData()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100a5930
|
// FUNCTION: LEGO1 0x100a5930
|
||||||
|
// FUNCTION: BETA10 0x10167bd8
|
||||||
void OrientableROI::SetLocal2WorldWithWorldDataUpdate(const Matrix4& p_transform)
|
void OrientableROI::SetLocal2WorldWithWorldDataUpdate(const Matrix4& p_transform)
|
||||||
{
|
{
|
||||||
m_local2world = p_transform;
|
m_local2world = p_transform;
|
||||||
@ -123,6 +125,7 @@ void OrientableROI::SetLocal2WorldWithWorldDataUpdate(const Matrix4& p_transform
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100a5960
|
// FUNCTION: LEGO1 0x100a5960
|
||||||
|
// FUNCTION: BETA10 0x10167c19
|
||||||
void OrientableROI::UpdateWorldDataWithTransform(const Matrix4& p_transform)
|
void OrientableROI::UpdateWorldDataWithTransform(const Matrix4& p_transform)
|
||||||
{
|
{
|
||||||
MxMatrix l_matrix(m_local2world);
|
MxMatrix l_matrix(m_local2world);
|
||||||
@ -132,6 +135,7 @@ void OrientableROI::UpdateWorldDataWithTransform(const Matrix4& p_transform)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100a59b0
|
// FUNCTION: LEGO1 0x100a59b0
|
||||||
|
// FUNCTION: BETA10 0x10167c6d
|
||||||
void OrientableROI::UpdateWorldDataWithTransformAndChildren(const Matrix4& p_transform)
|
void OrientableROI::UpdateWorldDataWithTransformAndChildren(const Matrix4& p_transform)
|
||||||
{
|
{
|
||||||
MxMatrix l_matrix(m_local2world);
|
MxMatrix l_matrix(m_local2world);
|
||||||
@ -155,6 +159,7 @@ void OrientableROI::SetWorldVelocity(const Vector3& p_world_velocity)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100a5a50
|
// FUNCTION: LEGO1 0x100a5a50
|
||||||
|
// FUNCTION: BETA10 0x10167d65
|
||||||
void OrientableROI::UpdateWorldVelocity()
|
void OrientableROI::UpdateWorldVelocity()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@ -187,18 +192,21 @@ void CalcWorldBoundingVolumes(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100a5d80
|
// FUNCTION: LEGO1 0x100a5d80
|
||||||
|
// FUNCTION: BETA10 0x10168760
|
||||||
const float* OrientableROI::GetWorldVelocity() const
|
const float* OrientableROI::GetWorldVelocity() const
|
||||||
{
|
{
|
||||||
return m_world_velocity.GetData();
|
return m_world_velocity.GetData();
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100a5d90
|
// FUNCTION: LEGO1 0x100a5d90
|
||||||
|
// FUNCTION: BETA10 0x10168790
|
||||||
const BoundingBox& OrientableROI::GetWorldBoundingBox() const
|
const BoundingBox& OrientableROI::GetWorldBoundingBox() const
|
||||||
{
|
{
|
||||||
return m_world_bounding_box;
|
return m_world_bounding_box;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100a5da0
|
// FUNCTION: LEGO1 0x100a5da0
|
||||||
|
// FUNCTION: BETA10 0x101687b0
|
||||||
const BoundingSphere& OrientableROI::GetWorldBoundingSphere() const
|
const BoundingSphere& OrientableROI::GetWorldBoundingSphere() const
|
||||||
{
|
{
|
||||||
return m_world_bounding_sphere;
|
return m_world_bounding_sphere;
|
||||||
|
|||||||
@ -23,6 +23,7 @@ class OrientableROI : public ROI {
|
|||||||
const BoundingSphere& GetWorldBoundingSphere() const override; // vtable+0x10
|
const BoundingSphere& GetWorldBoundingSphere() const override; // vtable+0x10
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100a5db0
|
// FUNCTION: LEGO1 0x100a5db0
|
||||||
|
// FUNCTION: BETA10 0x101687d0
|
||||||
virtual void WrappedUpdateWorldData() { UpdateWorldData(); } // vtable+0x14
|
virtual void WrappedUpdateWorldData() { UpdateWorldData(); } // vtable+0x14
|
||||||
|
|
||||||
virtual void UpdateWorldBoundingVolumes() = 0; // vtable+0x18
|
virtual void UpdateWorldBoundingVolumes() = 0; // vtable+0x18
|
||||||
|
|||||||
@ -16,65 +16,60 @@ float ViewROI::IntrinsicImportance() const
|
|||||||
} // for now
|
} // for now
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100a9ec0
|
// FUNCTION: LEGO1 0x100a9ec0
|
||||||
|
// FUNCTION: BETA10 0x1018c740
|
||||||
Tgl::Group* ViewROI::GetGeometry()
|
Tgl::Group* ViewROI::GetGeometry()
|
||||||
{
|
{
|
||||||
return geometry;
|
return geometry;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100a9ed0
|
// FUNCTION: LEGO1 0x100a9ed0
|
||||||
|
// FUNCTION: BETA10 0x1018c760
|
||||||
const Tgl::Group* ViewROI::GetGeometry() const
|
const Tgl::Group* ViewROI::GetGeometry() const
|
||||||
{
|
{
|
||||||
return geometry;
|
return geometry;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100a9ee0
|
// FUNCTION: LEGO1 0x100a9ee0
|
||||||
|
// FUNCTION: BETA10 0x1018c780
|
||||||
void ViewROI::UpdateWorldDataWithTransformAndChildren(const Matrix4& parent2world)
|
void ViewROI::UpdateWorldDataWithTransformAndChildren(const Matrix4& parent2world)
|
||||||
{
|
{
|
||||||
OrientableROI::UpdateWorldDataWithTransformAndChildren(parent2world);
|
OrientableROI::UpdateWorldDataWithTransformAndChildren(parent2world);
|
||||||
|
SetGeometryTransformation();
|
||||||
|
}
|
||||||
|
|
||||||
|
// FUNCTION: BETA10 0x1018c7b0
|
||||||
|
inline void ViewROI::SetGeometryTransformation()
|
||||||
|
{
|
||||||
if (geometry) {
|
if (geometry) {
|
||||||
Tgl::FloatMatrix4 matrix;
|
Tgl::FloatMatrix4 matrix;
|
||||||
Matrix4 in(matrix);
|
Matrix4 in(matrix);
|
||||||
SETMAT4(in, m_local2world);
|
SETMAT4(in, m_local2world);
|
||||||
Tgl::Result result = geometry->SetTransformation(matrix);
|
geometry->SetTransformation(matrix);
|
||||||
// assert(Tgl::Succeeded(result));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100a9fc0
|
// FUNCTION: LEGO1 0x100a9fc0
|
||||||
|
// FUNCTION: BETA10 0x1018cad0
|
||||||
void ViewROI::UpdateWorldDataWithTransform(const Matrix4& p_transform)
|
void ViewROI::UpdateWorldDataWithTransform(const Matrix4& p_transform)
|
||||||
{
|
{
|
||||||
OrientableROI::UpdateWorldDataWithTransform(p_transform);
|
OrientableROI::UpdateWorldDataWithTransform(p_transform);
|
||||||
if (geometry) {
|
SetGeometryTransformation();
|
||||||
Tgl::FloatMatrix4 matrix;
|
|
||||||
Matrix4 in(matrix);
|
|
||||||
SETMAT4(in, m_local2world);
|
|
||||||
geometry->SetTransformation(matrix);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100aa0a0
|
// FUNCTION: LEGO1 0x100aa0a0
|
||||||
|
// FUNCTION: BETA10 0x1018cb00
|
||||||
void ViewROI::SetLocal2WorldWithWorldDataUpdate(const Matrix4& p_transform)
|
void ViewROI::SetLocal2WorldWithWorldDataUpdate(const Matrix4& p_transform)
|
||||||
{
|
{
|
||||||
OrientableROI::SetLocal2WorldWithWorldDataUpdate(p_transform);
|
OrientableROI::SetLocal2WorldWithWorldDataUpdate(p_transform);
|
||||||
if (geometry) {
|
SetGeometryTransformation();
|
||||||
Tgl::FloatMatrix4 matrix;
|
|
||||||
Matrix4 in(matrix);
|
|
||||||
SETMAT4(in, m_local2world);
|
|
||||||
geometry->SetTransformation(matrix);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100aa180
|
// FUNCTION: LEGO1 0x100aa180
|
||||||
|
// FUNCTION: BETA10 0x1018cb30
|
||||||
void ViewROI::UpdateWorldData()
|
void ViewROI::UpdateWorldData()
|
||||||
{
|
{
|
||||||
OrientableROI::UpdateWorldData();
|
OrientableROI::UpdateWorldData();
|
||||||
if (geometry) {
|
SetGeometryTransformation();
|
||||||
Tgl::FloatMatrix4 matrix;
|
|
||||||
Matrix4 in(matrix);
|
|
||||||
SETMAT4(in, m_local2world);
|
|
||||||
geometry->SetTransformation(matrix);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100aa500
|
// FUNCTION: LEGO1 0x100aa500
|
||||||
|
|||||||
@ -13,6 +13,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// VTABLE: LEGO1 0x100dbe70
|
// VTABLE: LEGO1 0x100dbe70
|
||||||
|
// VTABLE: BETA10 0x101c3908
|
||||||
// SIZE 0xe4
|
// SIZE 0xe4
|
||||||
class ViewROI : public OrientableROI {
|
class ViewROI : public OrientableROI {
|
||||||
public:
|
public:
|
||||||
@ -69,6 +70,8 @@ class ViewROI : public OrientableROI {
|
|||||||
protected:
|
protected:
|
||||||
void UpdateWorldDataWithTransformAndChildren(const Matrix4& parent2world) override; // vtable+0x28
|
void UpdateWorldDataWithTransformAndChildren(const Matrix4& parent2world) override; // vtable+0x28
|
||||||
|
|
||||||
|
void SetGeometryTransformation();
|
||||||
|
|
||||||
Tgl::Group* geometry; // 0xdc
|
Tgl::Group* geometry; // 0xdc
|
||||||
int m_lodLevel; // 0xe0
|
int m_lodLevel; // 0xe0
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user