mirror of
https://github.com/zeldaret/oot.git
synced 2024-12-02 07:46:01 +00:00
40 lines
1.1 KiB
C
40 lines
1.1 KiB
C
|
#ifndef KALEIDO_MANAGER_H
|
||
|
#define KALEIDO_MANAGER_H
|
||
|
|
||
|
#include "ultra64.h"
|
||
|
#include "romfile.h"
|
||
|
|
||
|
struct PlayState;
|
||
|
|
||
|
typedef struct KaleidoMgrOverlay {
|
||
|
/* 0x00 */ void* loadedRamAddr;
|
||
|
/* 0x04 */ RomFile file;
|
||
|
/* 0x0C */ void* vramStart;
|
||
|
/* 0x10 */ void* vramEnd;
|
||
|
/* 0x14 */ u32 offset; // loadedRamAddr - vramStart
|
||
|
/* 0x18 */ const char* name;
|
||
|
} KaleidoMgrOverlay; // size = 0x1C
|
||
|
|
||
|
typedef enum KaleidoOverlayType {
|
||
|
/* 0 */ KALEIDO_OVL_KALEIDO_SCOPE,
|
||
|
/* 1 */ KALEIDO_OVL_PLAYER_ACTOR,
|
||
|
/* 2 */ KALEIDO_OVL_MAX
|
||
|
} KaleidoOverlayType;
|
||
|
|
||
|
void KaleidoManager_LoadOvl(KaleidoMgrOverlay* ovl);
|
||
|
void KaleidoManager_ClearOvl(KaleidoMgrOverlay* ovl);
|
||
|
void KaleidoManager_Init(struct PlayState* play);
|
||
|
void KaleidoManager_Destroy(void);
|
||
|
void* KaleidoManager_GetRamAddr(void* vram);
|
||
|
|
||
|
extern KaleidoMgrOverlay gKaleidoMgrOverlayTable[KALEIDO_OVL_MAX];
|
||
|
extern KaleidoMgrOverlay* gKaleidoMgrCurOvl;
|
||
|
|
||
|
void KaleidoScopeCall_LoadPlayer(void);
|
||
|
void KaleidoScopeCall_Init(struct PlayState* play);
|
||
|
void KaleidoScopeCall_Destroy(struct PlayState* play);
|
||
|
void KaleidoScopeCall_Update(struct PlayState* play);
|
||
|
void KaleidoScopeCall_Draw(struct PlayState* play);
|
||
|
|
||
|
#endif
|