mirror of
https://github.com/zeldaret/tp
synced 2026-05-24 23:22:01 -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
31 lines
702 B
C++
31 lines
702 B
C++
#ifndef JPATEXTURE_H
|
|
#define JPATEXTURE_H
|
|
|
|
#include "JSystem/JUtility/JUTTexture.h"
|
|
#include "dolphin/gx/GXEnum.h"
|
|
#include "dolphin/types.h"
|
|
|
|
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;
|
|
};
|
|
|
|
class JPATexture {
|
|
public:
|
|
JPATexture(u8 const*);
|
|
virtual ~JPATexture();
|
|
|
|
void load(GXTexMapID texMapID) { mTexture.load(texMapID); }
|
|
|
|
JUTTexture* getJUTTexture() { return &mTexture; }
|
|
const char* getName() const { return mpData->mName; }
|
|
|
|
public:
|
|
JUTTexture mTexture;
|
|
const JPATextureData* mpData;
|
|
};
|
|
|
|
#endif /* JPATEXTURE_H */
|