mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-19 09:01:20 +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
1.3 KiB
C++
53 lines
1.3 KiB
C++
#pragma once
|
|
|
|
#include "Game/Util/Array.hpp"
|
|
|
|
class DrawBufferGroup;
|
|
class LiveActor;
|
|
|
|
typedef MR::Vector< MR::AssignableArray< DrawBufferGroup* > > ExecutorList;
|
|
|
|
struct DrawBufferInitialTable {
|
|
/* 0x00 */ u32 mDrawBufferType;
|
|
/* 0x04 */ s32 mCapacity;
|
|
/* 0x08 */ u32 mLightType;
|
|
/* 0x0C */ u32 mDrawCameraType;
|
|
};
|
|
|
|
class DrawBufferHolder {
|
|
public:
|
|
DrawBufferHolder();
|
|
|
|
void initTable(const DrawBufferInitialTable*, s32);
|
|
|
|
void allocateActorListBuffer();
|
|
void active(LiveActor*, s32, s32);
|
|
s32 registerDrawBuffer(LiveActor*, s32);
|
|
void deactive(LiveActor*, s32, s32);
|
|
void findLightInfo(LiveActor*, s32, s32);
|
|
void entry(s32);
|
|
|
|
void drawOpa(s32) const;
|
|
void drawXlu(s32) const;
|
|
|
|
ExecutorList& getExecuteList(s32 drawBufferType);
|
|
bool isBufferGroupEmpty(s32 drawBufferType) const;
|
|
DrawBufferGroup* getDrawBufferGroup(s32 drawBufferType);
|
|
|
|
// debug symbol map functions
|
|
s32 getActiveActorCount(const char*);
|
|
void onEntryAll();
|
|
void offEntryAll();
|
|
void onDrawOpaAll();
|
|
void offDrawOpaAll();
|
|
void onDrawXluAll();
|
|
void offDrawXluAll();
|
|
|
|
// TODO: see .cpp
|
|
void dummy(s32);
|
|
|
|
/* 0x00 */ MR::AssignableArray< DrawBufferGroup > mBufferGroups;
|
|
/* 0x08 */ ExecutorList mExecuteLists[3];
|
|
/* 0x2C */ bool mTableInitialized;
|
|
};
|