mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-21 09:01:25 +02:00
The sources of Petari (https://github.com/SMGCommunity/Petari), the Super Mario Galaxy decompilation by the SMGCommunity, at commit 0a5c6608dc3b4c44a9aa68c2535d1793dc565f02, unchanged but for LF line endings: LICENSE (as LICENSE-Petari.txt; CC0 1.0), include/, libs/ and src/. Left out: the game data Petari keeps from the original executable, the error message archive (include/Game/System/ ErrorArchive.hpp) and two tables (src/Game/System/GalaxyID.bcsv and StoryEvent.bcsv); GalaxyQuest's converter takes them from the player's own disc. The port's changes follow in the next commit, so `git diff petari-base -- decomp` shows them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
53 lines
2.0 KiB
C++
53 lines
2.0 KiB
C++
#pragma once
|
|
|
|
#include <JSystem/JGeometry/TVec.hpp>
|
|
#include <revolution/types.h>
|
|
|
|
class J3DJoint;
|
|
class J3DModel;
|
|
class J3DModelData;
|
|
class LiveActor;
|
|
|
|
namespace MR {
|
|
J3DJoint* getJoint(J3DModel*, const char*);
|
|
J3DJoint* getJoint(const LiveActor*, const char*);
|
|
J3DJoint* getJoint(const LiveActor*, u16);
|
|
MtxPtr getJointMtx(J3DModel*, const char*);
|
|
MtxPtr getJointMtx(const LiveActor*, const char*);
|
|
MtxPtr getJointMtx(const LiveActor*, int);
|
|
u16 getJointIndex(const LiveActor*, const char*) NO_INLINE;
|
|
const char* getJointName(const LiveActor*, int);
|
|
s32 getJointNum(const LiveActor*);
|
|
bool isExistJoint(const LiveActor*, const char*);
|
|
void copyJointPos(J3DModel*, const char*, TVec3f*);
|
|
void copyJointPos(const LiveActor*, const char*, TVec3f*);
|
|
void copyJointPos(J3DModel*, int, TVec3f*);
|
|
void copyJointPos(const LiveActor*, int, TVec3f*);
|
|
void copyJointScale(const LiveActor*, const char*, TVec3f*);
|
|
void hideJoint(J3DJoint*);
|
|
void hideJoint(J3DModel*, const char*);
|
|
void hideJoint(const LiveActor*, const char*);
|
|
void hideJointAndChildren(J3DJoint*);
|
|
void hideJointAndChildren(J3DModel*, const char*);
|
|
void hideJointAndChildren(const LiveActor*, const char*);
|
|
void showJoint(J3DJoint*);
|
|
void showJoint(J3DModel*, const char*);
|
|
void showJoint(const LiveActor*, const char*);
|
|
void showJointAndChildren(J3DJoint*);
|
|
void showJointAndChildren(J3DModel*, const char*);
|
|
void showJointAndChildren(const LiveActor*, const char*);
|
|
f32 getJointTransX(const J3DJoint*);
|
|
f32 getJointTransY(const J3DJoint*);
|
|
f32 getJointTransZ(const J3DJoint*);
|
|
J3DJoint* searchChildJoint(J3DJoint* pRoot, J3DJoint* pJoint);
|
|
J3DJoint* getParentJoint(J3DModelData*, J3DJoint*);
|
|
J3DJoint* getParentJoint(const LiveActor*, J3DJoint*);
|
|
|
|
inline TVec3f getJointPos(const LiveActor* pActor, const char* pJointName) {
|
|
TVec3f jointPos;
|
|
copyJointPos(pActor, pJointName, &jointPos);
|
|
return jointPos;
|
|
}
|
|
|
|
}; // namespace MR
|