mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 00:44:21 +00:00
Matrix/vector refactor (#426)
This commit is contained in:
committed by
GitHub
parent
eac096036a
commit
d24f5db42f
22
LEGO1/mxgeometry/mxmatrix.h
Normal file
22
LEGO1/mxgeometry/mxmatrix.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef MXMATRIX_H
|
||||
#define MXMATRIX_H
|
||||
|
||||
#include "realtime/matrix.h"
|
||||
|
||||
// VTABLE: LEGO1 0x100d4300
|
||||
// SIZE 0x48
|
||||
class MxMatrix : public Matrix4 {
|
||||
public:
|
||||
inline MxMatrix() : Matrix4(m_elements) {}
|
||||
inline MxMatrix(const MxMatrix& p_matrix) : Matrix4(m_elements) { Equals(p_matrix); }
|
||||
|
||||
// No idea why there's another equals. Maybe to some other type like the
|
||||
// DirectX Retained Mode Matrix type which is also a float* alias?
|
||||
// FUNCTION: LEGO1 0x10002860
|
||||
virtual void operator=(const MxMatrix& p_matrix) { Equals(p_matrix); } // vtable+0x48
|
||||
|
||||
private:
|
||||
float m_elements[4][4];
|
||||
};
|
||||
|
||||
#endif // MXMATRIX_H
|
||||
Reference in New Issue
Block a user