mirror of
https://github.com/zeldaret/ss
synced 2026-07-08 22:04:41 -04:00
JPAResourceManager OK
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
#include "JSystem/JParticle/JPATexture.h"
|
||||
|
||||
class JPAResource;
|
||||
struct ResTIMG;
|
||||
|
||||
/**
|
||||
* @ingroup jsystem-jparticle
|
||||
@@ -18,7 +17,7 @@ public:
|
||||
/* 80273E10 */ JPAResourceManager(void const*, EGG::Heap*);
|
||||
/* 80273E68 */ JPAResource* getResource(u16) const;
|
||||
/* 80273EA8 */ bool checkUserIndexDuplication(u16) const;
|
||||
/* 80273EEC */ const ResTIMG* swapTexture(ResTIMG const*, char const*);
|
||||
/* 80273EEC */ const EGG::ResTIMG* swapTexture(EGG::ResTIMG const*, char const*);
|
||||
/* 80273F8C */ void registRes(JPAResource*);
|
||||
/* 80273FAC */ void registTex(JPATexture*);
|
||||
/* 80273FCC */ u32 getResUserWork(u16) const;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include "common.h"
|
||||
#include "rvl/GX.h"
|
||||
#include "JSystem/JUtility/JUTTexture.h"
|
||||
#include "egg/gfx/eggTexture.h"
|
||||
|
||||
/**
|
||||
* @ingroup jsystem-jparticle
|
||||
@@ -13,7 +13,7 @@ struct JPATextureData {
|
||||
// Probably magic / size / flags up top here, but they're unused.
|
||||
/* 0x00 */ char field_0x00[0x0C];
|
||||
/* 0x0C */ char mName[0x14];
|
||||
/* 0x20 */ ResTIMG mResTIMG;
|
||||
/* 0x20 */ EGG::ResTIMG mResTIMG;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -27,11 +27,11 @@ public:
|
||||
|
||||
void load(GXTexMapID texMapID) { mTexture.load(texMapID); }
|
||||
|
||||
JUTTexture* getJUTTexture() { return &mTexture; }
|
||||
EGG::Texture* getJUTTexture() { return &mTexture; }
|
||||
const char* getName() const { return mpData->mName; }
|
||||
|
||||
public:
|
||||
JUTTexture mTexture;
|
||||
EGG::Texture mTexture;
|
||||
const JPATextureData* mpData;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user