mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-28 07:54:51 -04:00
767ba3bb14
* launch.json cwd * bodge to load gci for testing * stub card stat * gameplay bodges * viewport, ub fixes * add release with debug info cmake variant * be fixes, sound stub * viewport h * d_msg_flow BE * be fopAcM_createItemFromEnemyID * update launch configuration to use iso * more audio stubs * Attempt to set viewport and get messages for brightness check * skip opening scene again, fixed JMessage::TResourceContainer::TCResource::Do_destroy * add guards for viewport changes * moar endian swapping to get Link sitting in PROC_OPENING_SCENE and for dialogues * BE d_msg_class i_data * stub bgm start * fix div by 0 error (for now) * TEMP_BROKEN in d_menu_ring * REQUIRES_GX_LINES * properly stub renderingAmap::draw with REQUIRES_GX_LINES * better stubbing outside of stubs * fix event data getting swapped multiple times * evil draw vp fix * Stub log imgui This redirects all spammy logs to an imgui window that is cleared per frame. This fixes the serious performance dip of the logging, and makes the regular log readable. * Oops move those optimization changes I accidentally committed behind a flag DUSK_SELECTED_OPT * gx_line macro in map * fix audio stubbing * switch to CARD API aurora impl * remove kabufuda from link libs * refactor imgui stuff and add input viewer * merge stub log with refactor * accidentally committed a metaforce header shh * basic map loader * ImGuiConsole: Add missing <thread> include * you may now play as luigi (you may now load stages with bridges) * bloom fix * bloom leak fix * cloud shadow fix * add soft reset button to imgui menu * if it broke dont not fix it * i swear i committed this * BE swap indMtx in JPAResource::setPTev * wnark ct fix * frsqrte implementation from kinoko * Fix Clang compile error in JAISeq::prepare_getSeqData_ * Add endian conversions to dMsgFlow_c::getInitNodeIndex This fixes a freeze when Fado tries to stop you from leaving the starting area. * Add RAII GXTexObj wrapper; fix almost all leaks * Update aurora for indirect texturing * Update aurora for CARD fix * Fix Clang build * More d_msg_flow endian fixes Fixes softlock when trying to talk to Fado and possibly other NPCs. * no frame limiter * get pause menu working * proper frame limiting * particle pointer size fix * improve map loader a bit --------- Co-authored-by: Jasper St. Pierre <jstpierre@mecheye.net> Co-authored-by: TakaRikka <takarikka@outlook.com> Co-authored-by: CraftyBoss <talibabdulmaalik@gmail.com> Co-authored-by: Luke Street <luke@street.dev> Co-authored-by: Lurs <2795933+Lurs@users.noreply.github.com> Co-authored-by: PJB3005 <pieterjan.briers+git@gmail.com> Co-authored-by: tgsm <doodrabbit@hotmail.com> Co-authored-by: Max Roncace <me@caseif.net> Co-authored-by: Phillip Stephens <antidote.crk@gmail.com>
66 lines
1.6 KiB
C++
66 lines
1.6 KiB
C++
#ifndef D_A_MIRROR_H
|
|
#define D_A_MIRROR_H
|
|
|
|
#include "f_op/f_op_actor_mng.h"
|
|
|
|
class dMirror_packet_c : public J3DPacket {
|
|
public:
|
|
dMirror_packet_c();
|
|
void reset();
|
|
void calcMinMax();
|
|
int entryModel(J3DModel*);
|
|
void mirrorZdraw(f32*, f32*, f32, f32, f32, f32, f32, f32);
|
|
void modelDraw(J3DModel*, f32 (*)[4]);
|
|
void mainDraw();
|
|
virtual void draw();
|
|
virtual ~dMirror_packet_c();
|
|
cXyz& getViewScale() { return mViewScale; }
|
|
TGXTexObj& getTexObj() { return mTexObj; }
|
|
cXyz* getQuad() { return mQuad; }
|
|
|
|
/* 0x010 */ TGXTexObj mTexObj;
|
|
/* 0x030 */ u8 mModelCount;
|
|
/* 0x034 */ J3DModel* mModels[0x40];
|
|
/* 0x134 */ cXyz mQuad[4];
|
|
/* 0x164 */ cXyz mMinVal;
|
|
/* 0x170 */ cXyz mMaxVal;
|
|
/* 0x17C */ cXyz mViewScale;
|
|
};
|
|
|
|
/**
|
|
* @ingroup actors-unsorted
|
|
* @class daMirror_c
|
|
* @brief Mirror
|
|
*
|
|
* @details Used in Link's House? Or Blizzeta's Room? Or Twilight Mirror?
|
|
*
|
|
*/
|
|
class daMirror_c : public fopAc_ac_c, public request_of_phase_process_class {
|
|
public:
|
|
daMirror_c();
|
|
BOOL createHeap();
|
|
void setModelMtx();
|
|
inline int create();
|
|
int execute();
|
|
int entryModel(J3DModel*);
|
|
static int entry(J3DModel*);
|
|
static bool remove();
|
|
|
|
inline int Delete();
|
|
inline int draw();
|
|
|
|
s32 getType() { return fopAcM_GetParamBit(this, 0, 8); }
|
|
s32 getSw() { return fopAcM_GetParamBit(this, 8, 8); }
|
|
static u32 getMirrorRoomPrm() { return 0xFF03; }
|
|
|
|
typedef int (daMirror_c::*entryModelFunc)(J3DModel*);
|
|
static entryModelFunc m_entryModel;
|
|
static daMirror_c* m_myObj;
|
|
|
|
/* 0x570 */ dMirror_packet_c mPacket;
|
|
/* 0x6f8 */ J3DModel* mpModel;
|
|
};
|
|
|
|
|
|
#endif /* D_A_MIRROR_H */
|