Files
tp/libs/JSystem/J3DGraphLoader/J3DJointFactory.cpp
T

53 lines
1.6 KiB
C++
Raw Normal View History

2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
// Generated By: dol2asm
// Translation Unit: J3DJointFactory
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
2021-04-01 02:07:58 +02:00
#include "JSystem/J3DGraphLoader/J3DJointFactory.h"
2023-11-08 22:56:00 -05:00
#include "JSystem/J3DGraphLoader/J3DModelLoader.h"
2022-10-04 21:17:53 -07:00
#include "JSystem/J3DGraphAnimator/J3DJoint.h"
#include "JSystem/JSupport/JSupport.h"
2021-03-28 22:49:05 +02:00
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
// Types:
2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
2022-10-04 21:17:53 -07:00
extern "C" u16* func_8033677C(const void*, const void*); // JSUConvertOffsetToPtr<u16>
2024-04-21 05:27:47 -07:00
extern "C" void* __nw__FUl();
extern "C" void __ct__8J3DJointFv();
2021-03-28 22:49:05 +02:00
2021-04-06 18:00:35 +02:00
/* 80337178-803371D0 331AB8 0058+00 0/0 1/1 0/0 .text __ct__15J3DJointFactoryFRC13J3DJointBlock */
2022-10-04 21:17:53 -07:00
J3DJointFactory::J3DJointFactory(J3DJointBlock const& block) {
2023-11-08 22:56:00 -05:00
mJointInitData = JSUConvertOffsetToPtr<J3DJointInitData>(&block, block.mpJointInitData);
2022-10-04 21:17:53 -07:00
// Fix when we have our ODR working.
2023-11-08 22:56:00 -05:00
// mIndexTable = JSUConvertOffsetToPtr<u16>(&block, block.mpIndexTable);
mIndexTable = func_8033677C(&block, block.mpIndexTable);
2021-03-28 22:49:05 +02:00
}
2021-04-06 18:00:35 +02:00
/* 803371D0-80337338 331B10 0168+00 0/0 1/1 0/0 .text create__15J3DJointFactoryFi */
2024-04-21 05:27:47 -07:00
#pragma push
#pragma optimization_level 0
#pragma optimizewithasm off
asm J3DJoint* J3DJointFactory::create(int param_0) {
nofralloc
#include "asm/JSystem/J3DGraphLoader/J3DJointFactory/create__15J3DJointFactoryFi.s"
}
#pragma pop
/* J3DJoint* J3DJointFactory::create(int no) {
2022-10-04 21:17:53 -07:00
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;
2021-03-28 22:49:05 +02:00
2022-10-04 21:17:53 -07:00
if (joint->mScaleCompensate == 0xFF)
joint->mScaleCompensate = 0;
return joint;
2024-04-21 05:27:47 -07:00
} */