Files
bigmak94andClaude Opus 5.5 4b395efe5c Add the Petari decompilation (SMGCommunity/Petari@0a5c660)
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>
2026-10-01 01:59:38 +02:00

66 lines
2.2 KiB
C++

#pragma once
#include "Game/NameObj/NameObj.hpp"
class ImageEffectArea;
class ImageEffectBase;
class ImageEffectState;
namespace ImageEffectStateImpl {
class StateBloomNormal;
class StateBloomSimple;
class StateDepthOfField;
class StateNull;
class StateScreenBlur;
}; // namespace ImageEffectStateImpl
class ImageEffectDirector : public NameObj {
public:
/// @brief Creates a new `ImageEffectDirector`.
/// @param pName A pointer to the null-terminated name of the object.
ImageEffectDirector(const char* pName);
virtual void movement();
void setCurrentEffect(ImageEffectBase*);
void turnOnNormal();
void turnOnDepthOfField(bool);
void turnOff();
void forceOff();
void setAuto();
void turnOffDOFInSubjective();
void turnOnDOFInSubjective();
void setNormalBloomIntensity(u8);
void setNormalBloomThreshold(u8);
void setNormalBloomBlurIntensity1(u8);
void setNormalBloomBlurIntensity2(u8);
void setDepthOfFieldIntensity(f32);
void updateManual();
void setState(ImageEffectState*);
void setBloomNormalParams(ImageEffectArea*);
void setBloomSimpleParams(ImageEffectArea*);
void setScreenBlurParams(ImageEffectArea*);
void setDepthOfFieldParams(ImageEffectArea*);
void initPlayerSyncIntensity(ImageEffectArea*, ImageEffectState*);
void updatePlayerSyncIntensity(ImageEffectArea*, ImageEffectState*);
void updateSyncCounter();
void incPlayerSyncIntensity();
void decPlayerSyncIntensity();
void setPlayerSync(bool);
void updateAuto();
/* 0x0C */ bool mIsAuto;
/* 0x0D */ bool mIsPlayerSync;
/* 0x0E */ bool _E;
/* 0x0F */ bool _F;
/* 0x10 */ s32 mPlayerSyncIntensity;
/* 0x14 */ f32 mDepthOfFieldIntensity;
/* 0x18 */ ImageEffectStateImpl::StateNull* mStateNull;
/* 0x1C */ ImageEffectStateImpl::StateBloomNormal* mStateBloomNormal;
/* 0x20 */ ImageEffectStateImpl::StateBloomSimple* mStateBloomSimple;
/* 0x24 */ ImageEffectStateImpl::StateScreenBlur* mStateScreenBlur;
/* 0x28 */ ImageEffectStateImpl::StateDepthOfField* mStateDepthOfField;
/* 0x2C */ ImageEffectState* mState;
/* 0x30 */ ImageEffectBase* mCurrentEffect;
};