mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 15:01:53 -04:00
221f40e609
* add "global.h" to files that use it * add MSL_C includes to files that use them * remove dolphin includes from headers that don't need them * remove JSupport includes from headers that don't need them * remove JKernel includes from headers that don't need them * remove JUtility includes from headers that don't need them * remove J3D includes from headers that don't need them * remove J2D includes from headers that don't need them * remove JAudio2 includes from headers that don't need them * remove Z2AudioLib includes from headers that don't need them * remove JMessage includes from headers that don't need them * remove JParticle includes from headers that don't need them * remove SComponent includes from headers that don't need them * remove dol includes from headers that don't need them * sort includes
35 lines
996 B
C++
35 lines
996 B
C++
#ifndef JPARESOURCEMANAGER_H
|
|
#define JPARESOURCEMANAGER_H
|
|
|
|
#include "JSystem/JParticle/JPATexture.h"
|
|
#include "dolphin/gx/GXEnum.h"
|
|
#include "dolphin/types.h"
|
|
|
|
class JKRHeap;
|
|
class ResTIMG;
|
|
class JPAResource;
|
|
|
|
class JPAResourceManager {
|
|
public:
|
|
/* 80273E10 */ JPAResourceManager(void const*, JKRHeap*);
|
|
/* 80273E68 */ JPAResource* getResource(u16) const;
|
|
/* 80273EA8 */ bool checkUserIndexDuplication(u16) const;
|
|
/* 80273EEC */ const ResTIMG* swapTexture(ResTIMG const*, char const*);
|
|
/* 80273F8C */ void registRes(JPAResource*);
|
|
/* 80273FAC */ void registTex(JPATexture*);
|
|
/* 80273FCC */ u32 getResUserWork(u16) const;
|
|
|
|
void load(u16 idx, GXTexMapID texMapID) { mpTexArr[idx]->load(texMapID); }
|
|
|
|
public:
|
|
/* 0x00 */ JKRHeap* mpHeap;
|
|
/* 0x04 */ JPAResource** mpResArr;
|
|
/* 0x08 */ JPATexture** mpTexArr;
|
|
/* 0x0C */ u16 mResMax;
|
|
/* 0x0E */ u16 mResNum;
|
|
/* 0x10 */ u16 mTexMax;
|
|
/* 0x12 */ u16 mTexNum;
|
|
};
|
|
|
|
#endif /* JPARESOURCEMANAGER_H */
|