mirror of
https://github.com/PodeCaradox/GalaxyQuest-SteamFrame.git
synced 2026-10-23 10:01:33 +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>
55 lines
1.1 KiB
C++
55 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include <JSystem/J3DGraphAnimator/J3DModel.hpp>
|
|
#include <revolution/gx/GXEnum.h>
|
|
#include <revolution.h>
|
|
|
|
class J3DModel;
|
|
class J3DModelData;
|
|
class ResTIMG;
|
|
class J3DShape;
|
|
|
|
class CShader : public J3DVtxShader {
|
|
public:
|
|
class CLengthMap {
|
|
public:
|
|
CLengthMap(const ResTIMG*);
|
|
|
|
void setLengthMap(const ResTIMG*);
|
|
f32 refer(f32, f32) const;
|
|
u16 getTexelOrder(u16, f32, GXTexWrapMode) const;
|
|
|
|
const ResTIMG* _0;
|
|
const u8* _4;
|
|
u8 _8;
|
|
};
|
|
|
|
class CIndex {
|
|
public:
|
|
CIndex();
|
|
|
|
u16 _0;
|
|
u16 _2;
|
|
};
|
|
|
|
CShader(const J3DModelData*, const ResTIMG*);
|
|
|
|
virtual void calc(J3DModel*);
|
|
virtual void setup(J3DModelData*);
|
|
virtual ~CShader();
|
|
|
|
void makeIndexData(J3DShape*) const;
|
|
void checkBorderVtx(J3DModelData*, u32);
|
|
|
|
/* 0x08 */ f32 _8;
|
|
/* 0x0C */ CShader::CIndex* mIndexArray;
|
|
/* 0x10 */ CShader::CLengthMap mLengthMap;
|
|
/* 0x1C */ f32 _1C;
|
|
/* 0x20 */ u8 _20;
|
|
/* 0x21 */ u8 _21;
|
|
/* 0x22 */ u8 _22;
|
|
/* 0x23 */ u8 _23;
|
|
/* 0x24 */ u8 _24;
|
|
/* 0x25 */ u8 _25;
|
|
};
|