mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-18 23:01:13 +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>
61 lines
1.8 KiB
C++
61 lines
1.8 KiB
C++
#pragma once
|
|
|
|
#include "Game/Util/Array.hpp"
|
|
#include <revolution/types.h>
|
|
|
|
class FogCtrl;
|
|
class J3DAnmBase;
|
|
class J3DGXColor;
|
|
class J3DModel;
|
|
class J3DModelData;
|
|
class MarioShadowProjmapMtxSetter;
|
|
class MatColorCtrl;
|
|
class MaterialCtrl;
|
|
class MirrorReflectionMtxSetter;
|
|
class ProjmapEffectMtxSetter;
|
|
class ResourceHolder;
|
|
class TexMtxCtrl;
|
|
class ViewProjmapEffectMtxSetter;
|
|
|
|
class DisplayListMaker {
|
|
public:
|
|
DisplayListMaker(J3DModel*, const ResourceHolder*);
|
|
|
|
void update();
|
|
void diff();
|
|
void newDifferedDisplayList();
|
|
bool isValidDiff();
|
|
void onPrgFlag(u16, u32);
|
|
void onCurFlag(u16, u32);
|
|
u32 getDiffFlag(s32) const;
|
|
FogCtrl* addFogCtrl(bool);
|
|
MatColorCtrl* addMatColorCtrl(const char*, u32, const J3DGXColor*);
|
|
TexMtxCtrl* addTexMtxCtrl(const char*);
|
|
ProjmapEffectMtxSetter* addProjmapEffectMtxSetter();
|
|
MirrorReflectionMtxSetter* addMirrorReflectionMtxSetter();
|
|
void onCurFlagBpk(const J3DAnmBase*);
|
|
void offCurFlagBpk(const J3DAnmBase*);
|
|
void onCurFlagBtp(const J3DAnmBase*);
|
|
void offCurFlagBtp(const J3DAnmBase*);
|
|
void onCurFlagBtk(const J3DAnmBase*);
|
|
void offCurFlagBtk(const J3DAnmBase*);
|
|
void onCurFlagBrk(const J3DAnmBase*);
|
|
void offCurFlagBrk(const J3DAnmBase*);
|
|
void push(MaterialCtrl*);
|
|
void onBothFlag(u16, u32);
|
|
void onBothFlagAll(u32);
|
|
void checkMaterial();
|
|
void checkViewProjmapEffectMtx();
|
|
ViewProjmapEffectMtxSetter* addViewProjmapEffectMtxSetter();
|
|
MarioShadowProjmapMtxSetter* addMarioShadowProjmapMtxSetter();
|
|
void checkTexture();
|
|
static bool isExistDiffMaterial(const J3DModelData*);
|
|
|
|
/* 0x00 */ MR::Vector< MR::AssignableArray< MaterialCtrl* > > mMaterialCtrl;
|
|
/* 0x0C */ u32* mPrgFlag;
|
|
/* 0x10 */ u32* mCurFlag;
|
|
/* 0x14 */ J3DModel* mModel;
|
|
/* 0x18 */ FogCtrl* mFogCtrl;
|
|
/* 0x1C */ const ResourceHolder* mResHolder;
|
|
};
|