mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 23:57:54 -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>
52 lines
1.2 KiB
C++
52 lines
1.2 KiB
C++
#ifndef MXGEOMETRY3D_H
|
|
#define MXGEOMETRY3D_H
|
|
|
|
#include "realtime/vector.h"
|
|
|
|
// VTABLE: LEGO1 0x100d4488
|
|
// SIZE 0x14
|
|
class Mx3DPointFloat : public Vector3 {
|
|
public:
|
|
inline Mx3DPointFloat() : Vector3(m_elements) {}
|
|
inline Mx3DPointFloat(float p_x, float p_y, float p_z) : Vector3(m_elements)
|
|
{
|
|
m_elements[0] = p_x;
|
|
m_elements[1] = p_y;
|
|
m_elements[2] = p_z;
|
|
}
|
|
|
|
// SYNTHETIC: LEGO1 0x1001d170
|
|
// Mx3DPointFloat::Mx3DPointFloat
|
|
|
|
// FUNCTION: LEGO1 0x10003c10
|
|
virtual void operator=(const Vector3& p_impl) { EqualsImpl(p_impl.m_data); } // vtable+0x88
|
|
|
|
inline void CopyFrom(const Mx3DPointFloat& p_other)
|
|
{
|
|
// ALPHA: 0x10010860, multiple indirections to this call
|
|
EqualsImpl(p_other.m_data);
|
|
|
|
float* dest = m_elements;
|
|
const float* src = p_other.m_elements;
|
|
for (size_t i = sizeof(m_elements) / sizeof(float); i > 0; --i) {
|
|
*dest++ = *src++;
|
|
}
|
|
}
|
|
|
|
inline void EqualsCross(Mx3DPointFloat& p_a, Mx3DPointFloat& p_b) { EqualsCrossImpl(p_a.m_data, p_b.m_data); }
|
|
|
|
private:
|
|
float m_elements[3];
|
|
};
|
|
|
|
// VTABLE: LEGO1 0x100d41e8
|
|
// SIZE 0x18
|
|
class Mx4DPointFloat : public Vector4 {
|
|
public:
|
|
inline Mx4DPointFloat() : Vector4(m_elements) {}
|
|
|
|
private:
|
|
float m_elements[4];
|
|
};
|
|
|
|
#endif // MXGEOMETRY3D_H
|