isle-portable/LEGO1/mxtransitionmanager.h

76 lines
1.8 KiB
C
Raw Normal View History

2023-04-27 22:19:39 -04:00
#ifndef MXTRANSITIONMANAGER_H
#define MXTRANSITIONMANAGER_H
2023-10-24 19:38:27 -04:00
#include "legoomni.h"
#include "mxcore.h"
#include "mxvideopresenter.h"
#include <ddraw.h>
// VTABLE 0x100d7ea0
2023-10-24 19:38:27 -04:00
class MxTransitionManager : public MxCore {
2023-04-27 22:19:39 -04:00
public:
2023-10-24 19:38:27 -04:00
MxTransitionManager();
virtual ~MxTransitionManager() override; // vtable+0x0
2023-10-24 19:38:27 -04:00
__declspec(dllexport) void SetWaitIndicator(MxVideoPresenter* p_waitIndicator);
2023-10-24 19:38:27 -04:00
virtual MxResult Tickle(); // vtable+0x8
2023-10-24 19:38:27 -04:00
// OFFSET: LEGO1 0x1004b950
inline virtual const char* ClassName() const override // vtable+0x0c
{
return "MxTransitionManager";
}
2023-10-24 19:38:27 -04:00
// OFFSET: LEGO1 0x1004b960
inline virtual MxBool IsA(const char* name) const override // vtable+0x10
{
return !strcmp(name, MxTransitionManager::ClassName()) || MxCore::IsA(name);
}
2023-10-24 19:38:27 -04:00
virtual MxResult GetDDrawSurfaceFromVideoManager(); // vtable+0x14
2023-10-24 19:38:27 -04:00
enum TransitionType {
NOT_TRANSITIONING,
NO_ANIMATION,
DISSOLVE,
PIXELATION,
SCREEN_WIPE,
WINDOWS,
BROKEN // Unknown what this is supposed to be, it locks the game up
};
2023-10-24 19:38:27 -04:00
MxResult StartTransition(TransitionType p_animationType, MxS32 p_speed, MxBool p_doCopy, MxBool p_playMusicInAnim);
private:
2023-10-24 19:38:27 -04:00
void EndTransition(MxBool p_notifyWorld);
void Transition_None();
void Transition_Dissolve();
void Transition_Pixelation();
void Transition_Wipe();
void Transition_Windows();
void Transition_Broken();
void SubmitCopyRect(LPDDSURFACEDESC ddsc);
void SetupCopyRect(LPDDSURFACEDESC ddsc);
MxVideoPresenter* m_waitIndicator;
RECT m_copyRect;
MxU8* m_copyBuffer;
flag_bitfield m_copyFlags;
undefined4 m_unk24;
flag_bitfield m_unk28;
TransitionType m_transitionType;
LPDIRECTDRAWSURFACE m_ddSurface;
MxU16 m_animationTimer;
MxU16 m_columnOrder[640]; // 0x36
MxU16 m_randomShift[480]; // 0x536
MxULong m_systemTime; // 0x8f8
MxS32 m_animationSpeed; // 0x8fc
2023-04-27 22:19:39 -04:00
};
#endif // MXTRANSITIONMANAGER_H