diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2023-10-18 14:46:05 -0400 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2023-10-18 14:46:05 -0400 |
| commit | 2486016599b7d757a3fa70cbf7a5fc462c5a1f8a (patch) | |
| tree | 3c92f7a5358cb279db13ccd4ba05313a2c29b20a /include/JSystem/J3DGraphBase | |
| parent | 3cd46d49ac78a3ff9ea42c2c4a2bb9d0adcea566 (diff) | |
Fix J3DTransformInfo array ctor
Diffstat (limited to 'include/JSystem/J3DGraphBase')
| -rw-r--r-- | include/JSystem/J3DGraphBase/J3DTransform.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/include/JSystem/J3DGraphBase/J3DTransform.h b/include/JSystem/J3DGraphBase/J3DTransform.h index 384e9119..2260bb6e 100644 --- a/include/JSystem/J3DGraphBase/J3DTransform.h +++ b/include/JSystem/J3DGraphBase/J3DTransform.h @@ -6,10 +6,23 @@ struct J3DTextureSRTInfo; +// struct J3DTransformInfo { +// /* 0x00 */ JGeometry::TVec3<f32> mScale; +// /* 0x0C */ JGeometry::TVec3<s16> mRotation; +// /* 0x14 */ JGeometry::TVec3<f32> mTranslate; +// }; // Size: 0x20 + +// I doubt this is right but it seems like the only way to prevent an empty ctor being added on array construction struct J3DTransformInfo { - /* 0x00 */ JGeometry::TVec3<f32> mScale; + /* 0x00 */ Vec mScale; /* 0x0C */ JGeometry::TVec3<s16> mRotation; - /* 0x14 */ JGeometry::TVec3<f32> mTranslate; + /* 0x14 */ Vec mTranslate; + inline J3DTransformInfo& operator=(const J3DTransformInfo& b) { + mScale = b.mScale; + mRotation = b.mRotation; + mTranslate = b.mTranslate; + return *this; + } }; // Size: 0x20 extern J3DTransformInfo const j3dDefaultTransformInfo; |
