summaryrefslogtreecommitdiff
path: root/src/JSystem/J3DGraphLoader/J3DJointFactory.cpp
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2024-10-10 07:29:58 -0700
committerGitHub <noreply@github.com>2024-10-10 08:29:58 -0600
commit12eb254d769d84743b5cc6cd5424057c57eaf0ad (patch)
tree4509be332b2ccfc6fe939f47740d68f7746eca3e /src/JSystem/J3DGraphLoader/J3DJointFactory.cpp
parent2fd702c0ac170a789af879b8b92a82d4dcc9080c (diff)
switch to dtk setup (#2203)
* switch to dtk setup * some cleanup / fixes * cleanup d_a_alink literals * Restore doxygen, update CI & README.md (#1) * Fix build image ref (#2) --------- Co-authored-by: Luke Street <luke@street.dev>
Diffstat (limited to 'src/JSystem/J3DGraphLoader/J3DJointFactory.cpp')
-rw-r--r--src/JSystem/J3DGraphLoader/J3DJointFactory.cpp48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/JSystem/J3DGraphLoader/J3DJointFactory.cpp b/src/JSystem/J3DGraphLoader/J3DJointFactory.cpp
new file mode 100644
index 0000000000..2d9f144016
--- /dev/null
+++ b/src/JSystem/J3DGraphLoader/J3DJointFactory.cpp
@@ -0,0 +1,48 @@
+//
+// Generated By: dol2asm
+// Translation Unit: J3DJointFactory
+//
+
+#include "JSystem/J3DGraphLoader/J3DJointFactory.h"
+#include "JSystem/J3DGraphLoader/J3DModelLoader.h"
+#include "JSystem/J3DGraphAnimator/J3DJoint.h"
+#include "JSystem/JSupport/JSupport.h"
+
+//
+// Types:
+//
+
+extern "C" u16* func_8033677C(const void*, const void*); // JSUConvertOffsetToPtr<u16>
+extern "C" void* __nw__FUl();
+extern "C" void __ct__8J3DJointFv();
+
+/* 80337178-803371D0 331AB8 0058+00 0/0 1/1 0/0 .text __ct__15J3DJointFactoryFRC13J3DJointBlock */
+J3DJointFactory::J3DJointFactory(J3DJointBlock const& block) {
+ mJointInitData = JSUConvertOffsetToPtr<J3DJointInitData>(&block, block.mpJointInitData);
+
+ // Fix when we have our ODR working.
+ // mIndexTable = JSUConvertOffsetToPtr<u16>(&block, block.mpIndexTable);
+ mIndexTable = func_8033677C(&block, block.mpIndexTable);
+}
+
+/* 803371D0-80337338 331B10 0168+00 0/0 1/1 0/0 .text create__15J3DJointFactoryFi */
+J3DJoint* J3DJointFactory::create(int param_0) {
+ // NONMATCHING
+}
+
+/* J3DJoint* J3DJointFactory::create(int no) {
+ J3DJoint* joint = new J3DJoint();
+ joint->mJntNo = no;
+ joint->mKind = getKind(no);
+ joint->mScaleCompensate = getScaleCompensate(no);
+ joint->mTransformInfo = getTransformInfo(no);
+ joint->mBoundingSphereRadius = getRadius(no);
+ joint->mMin = getMin(no);
+ joint->mMax = getMax(no);
+ joint->mMtxCalc = NULL;
+
+ if (joint->mScaleCompensate == 0xFF)
+ joint->mScaleCompensate = 0;
+
+ return joint;
+} */ \ No newline at end of file