Files
tp/include/f_pc/f_pc_leaf.h
T

41 lines
1.2 KiB
C
Raw Normal View History

2021-03-28 22:49:05 +02:00
2021-04-01 12:06:29 +02:00
#ifndef F_PC_LEAF_H_
#define F_PC_LEAF_H_
#include "f_pc/f_pc_base.h"
#include "f_pc/f_pc_draw_priority.h"
#include "f_pc/f_pc_method.h"
2023-05-12 12:10:14 -07:00
#include "f_pc/f_pc_profile.h"
2021-03-28 22:49:05 +02:00
2021-04-01 12:06:29 +02:00
typedef struct leafdraw_method_class {
/* 0x00 */ process_method_class mBase;
/* 0x10 */ process_method_func mpDrawFunc;
} leafdraw_method_class;
typedef struct leafdraw_class {
/* 0x00 */ base_process_class mBase;
/* 0xB8 */ leafdraw_method_class* mpDrawMtd;
/* 0xBC */ s8 mbUnk0;
/* 0xBD */ u8 mbUnk1;
/* 0xBE */ draw_priority_class mDwPi;
} leafdraw_class;
typedef struct leaf_process_profile_definition {
/* 0x00 */ process_profile_definition mBase;
2022-12-30 16:43:15 -08:00
/* 0x1C */ leafdraw_method_class* mSubMtd; // Subclass methods
/* 0x20 */ s16 mPriority; // mDrawPriority
2021-04-01 12:06:29 +02:00
} leaf_process_profile_definition;
2022-12-30 16:05:46 -08:00
s16 fpcLf_GetPriority(const leafdraw_class* pLeaf);
2021-04-01 12:06:29 +02:00
s32 fpcLf_DrawMethod(leafdraw_method_class* pMthd, void* pUserData);
s32 fpcLf_Draw(leafdraw_class* pMthd);
s32 fpcLf_Execute(leafdraw_class* pLeaf);
s32 fpcLf_IsDelete(leafdraw_class* pLeaf);
s32 fpcLf_Delete(leafdraw_class* pLeaf);
s32 fpcLf_Create(leafdraw_class* pLeaf);
extern int g_fpcLf_type;
extern leafdraw_method_class g_fpcLf_Method;
2021-04-01 12:06:29 +02:00
#endif