mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 06:54:28 -04:00
a6e76c0841
* some wii OS fixes * remove old dol2asm comments * remove dol2asm.h * remove function address comments * normalize ATTRIBUTE_ALIGN usage * DECL_WEAK macro * fix gcc attribute weak macro * wrap more mwcc specific things in ifdefs * fixes * fix revo sdk version flags * fixes
37 lines
876 B
C++
37 lines
876 B
C++
#ifndef JPARESOURCEMANAGER_H
|
|
#define JPARESOURCEMANAGER_H
|
|
|
|
#include "JSystem/JParticle/JPATexture.h"
|
|
|
|
class JKRHeap;
|
|
class JPAResource;
|
|
struct ResTIMG;
|
|
|
|
/**
|
|
* @ingroup jsystem-jparticle
|
|
*
|
|
*/
|
|
class JPAResourceManager {
|
|
public:
|
|
JPAResourceManager(void const*, JKRHeap*);
|
|
JPAResource* getResource(u16) const;
|
|
bool checkUserIndexDuplication(u16) const;
|
|
const ResTIMG* swapTexture(ResTIMG const*, char const*);
|
|
void registRes(JPAResource*);
|
|
void registTex(JPATexture*);
|
|
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 */
|