mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-26 17:46:38 -05:00
9e686e2a87
* cmake+ci: run clang-tidy
* Remove DESCRIPTION from LEGO1/LegoOmni.mingw.def
* Add initial .clang-tidy and fixes
* fix file perms
* Comment out DESCRIPTION
* Remove LegoEntity::~LegoEntity and MxPresenter::~MxPresenter from mingw's LEGO1.def
* Looks like clang is allergic to the libs in the directx5 SDK
* Update .clang-tidy
* Fix typo in .clang-tidy
* Attempt to generate an action error
* Revert "Attempt to generate an action error"
This reverts commit 96c4c65fed
.
* cmake: test with -Wparentheses + optionally with -Werror
* ci: -k0 is a Ninja argument
* Use -Werror only for msys2 builds
* cmake: only emit warnings for specific warnings
* cmake: and don't do -Werror/-WX anymore
* Fix warnings
* Fix mingw warnings
---------
Co-authored-by: Christian Semmler <mail@csemmler.com>
60 lines
2.1 KiB
C++
60 lines
2.1 KiB
C++
#ifndef ORIENTABLEROI_H
|
|
#define ORIENTABLEROI_H
|
|
|
|
#include "decomp.h"
|
|
#include "mxgeometry/mxmatrix.h"
|
|
#include "roi.h"
|
|
|
|
// VTABLE: LEGO1 0x100dbc08
|
|
// SIZE 0xdc
|
|
class OrientableROI : public ROI {
|
|
public:
|
|
enum {
|
|
c_bit1 = 0x01,
|
|
c_bit2 = 0x02
|
|
};
|
|
|
|
OrientableROI();
|
|
|
|
const float* GetWorldVelocity() const override; // vtable+0x08
|
|
const BoundingBox& GetWorldBoundingBox() const override; // vtable+0x0c
|
|
const BoundingSphere& GetWorldBoundingSphere() const override; // vtable+0x10
|
|
// FUNCTION: LEGO1 0x100a5db0
|
|
virtual void VTable0x14() { VTable0x1c(); } // 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 MxMatrix& p_transform); // vtable+0x24
|
|
virtual void UpdateWorldData(const MxMatrix& p_transform); // vtable+0x28
|
|
virtual void UpdateWorldVelocity(); // vtable+0x2c
|
|
|
|
const MxMatrix& GetLocal2World() const { return m_local2world; }
|
|
const float* GetWorldPosition() const { return m_local2world[3]; }
|
|
const float* GetWorldDirection() const { return m_local2world[2]; }
|
|
const float* GetWorldUp() const { return m_local2world[1]; }
|
|
OrientableROI* GetUnknown0xd4() const { return m_unk0xd4; }
|
|
|
|
protected:
|
|
MxMatrix m_local2world; // 0x10
|
|
BoundingBox m_world_bounding_box; // 0x58
|
|
|
|
// Unclear whether the following vectors are:
|
|
// 1) Part of m_world_bounding_box;
|
|
// 2) A second BoundingBox;
|
|
// 3) Standalone vectors
|
|
|
|
Mx3DPointFloat m_unk0x80; // 0x80
|
|
Mx3DPointFloat m_unk0x94; // 0x94
|
|
BoundingSphere m_world_bounding_sphere; // 0xa8
|
|
Mx3DPointFloat m_world_velocity; // 0xc0
|
|
OrientableROI* m_unk0xd4; // 0xd4
|
|
undefined4 m_unk0xd8; // 0xd8
|
|
};
|
|
|
|
// SYNTHETIC: LEGO1 0x100a4630
|
|
// OrientableROI::`scalar deleting destructor'
|
|
|
|
// SYNTHETIC: LEGO1 0x100aa2f0
|
|
// OrientableROI::~OrientableROI
|
|
|
|
#endif // ORIENTABLEROI_H
|