mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-14 13:30:47 +00:00
cbf9eacf42
* [headers 12] add kaleido_manager.h, move various protos to headers * BSS * bss
39 lines
1.1 KiB
C
39 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
|