summaryrefslogtreecommitdiff
path: root/include/JSystem/JParticle/JPATexture.h
blob: 19b3bed715cbdf682920c352b363fb4b2f5d4c67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef JPATEXTURE_H
#define JPATEXTURE_H

#include "JSystem/JUtility/JUTTexture.h"

/**
 * @ingroup jsystem-jparticle
 * 
 */
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;
};

/**
 * @ingroup jsystem-jparticle
 * 
 */
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 */