mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Matrix/vector refactor (#426)
This commit is contained in:

committed by
GitHub

parent
eac096036a
commit
d24f5db42f
@@ -2,8 +2,8 @@
|
||||
#define MXDSACTION_H
|
||||
|
||||
#include "mxdsobject.h"
|
||||
#include "mxgeometry/mxgeometry3d.h"
|
||||
#include "mxtypes.h"
|
||||
#include "realtime/vector.h"
|
||||
|
||||
class MxOmni;
|
||||
|
||||
@@ -63,9 +63,9 @@ public:
|
||||
inline MxLong GetStartTime() const { return m_startTime; }
|
||||
inline MxS32 GetLoopCount() { return m_loopCount; }
|
||||
inline void SetLoopCount(MxS32 p_loopCount) { m_loopCount = p_loopCount; }
|
||||
inline Vector3Data& GetLocation() { return m_location; }
|
||||
inline Vector3Data& GetDirection() { return m_direction; }
|
||||
inline Vector3Data& GetUp() { return m_up; }
|
||||
inline Mx3DPointFloat& GetLocation() { return m_location; }
|
||||
inline Mx3DPointFloat& GetDirection() { return m_direction; }
|
||||
inline Mx3DPointFloat& GetUp() { return m_up; }
|
||||
inline MxCore* GetUnknown84() { return m_unk0x84; }
|
||||
inline void SetUnknown84(MxCore* p_unk0x84) { m_unk0x84 = p_unk0x84; }
|
||||
inline MxCore* GetOrigin() { return m_origin; }
|
||||
@@ -83,20 +83,20 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
MxU32 m_sizeOnDisk; // 0x2c
|
||||
MxU32 m_flags; // 0x30
|
||||
MxLong m_startTime; // 0x34
|
||||
MxLong m_duration; // 0x38
|
||||
MxS32 m_loopCount; // 0x3c
|
||||
Vector3Data m_location; // 0x40
|
||||
Vector3Data m_direction; // 0x54
|
||||
Vector3Data m_up; // 0x68
|
||||
char* m_extraData; // 0x7c
|
||||
MxU16 m_extraLength; // 0x80
|
||||
MxCore* m_unk0x84; // 0x84
|
||||
undefined4 m_unk0x88; // 0x88
|
||||
MxCore* m_origin; // 0x8c
|
||||
MxLong m_unk0x90; // 0x90
|
||||
MxU32 m_sizeOnDisk; // 0x2c
|
||||
MxU32 m_flags; // 0x30
|
||||
MxLong m_startTime; // 0x34
|
||||
MxLong m_duration; // 0x38
|
||||
MxS32 m_loopCount; // 0x3c
|
||||
Mx3DPointFloat m_location; // 0x40
|
||||
Mx3DPointFloat m_direction; // 0x54
|
||||
Mx3DPointFloat m_up; // 0x68
|
||||
char* m_extraData; // 0x7c
|
||||
MxU16 m_extraLength; // 0x80
|
||||
MxCore* m_unk0x84; // 0x84
|
||||
undefined4 m_unk0x88; // 0x88
|
||||
MxCore* m_origin; // 0x8c
|
||||
MxLong m_unk0x90; // 0x90
|
||||
};
|
||||
|
||||
#endif // MXDSACTION_H
|
||||
|
@@ -65,7 +65,8 @@ public:
|
||||
|
||||
// FUNCTION: LEGO1 0x1000c730
|
||||
virtual void RealizePalette(){}; // vtable+0x70
|
||||
virtual undefined VTable0x74(); // vtable+0x74
|
||||
|
||||
virtual undefined VTable0x74(); // vtable+0x74
|
||||
|
||||
// FUNCTION: LEGO1 0x1000c7b0
|
||||
virtual LPDIRECTDRAWSURFACE VTable0x78() { return m_unk0x58; }; // vtable+0x78
|
||||
|
@@ -36,7 +36,7 @@ MxResult MxPresenter::StartAction(MxStreamController*, MxDSAction* p_action)
|
||||
|
||||
this->m_action = p_action;
|
||||
|
||||
const Vector3Data& location = this->m_action->GetLocation();
|
||||
const Mx3DPointFloat& location = this->m_action->GetLocation();
|
||||
MxS32 previousTickleState = this->m_currentTickleState;
|
||||
|
||||
this->m_location = MxPoint32(this->m_action->GetLocation()[0], this->m_action->GetLocation()[1]);
|
||||
|
Reference in New Issue
Block a user