summaryrefslogtreecommitdiff
path: root/include/JSystem/JParticle/JPATexture.h
blob: 0088eb5c83ac02a55b36ce6ce261d50bca0fa425 (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
37
38
#ifndef JPATEXTURE_H
#define JPATEXTURE_H

#include "common.h"
#include "rvl/GX.h"
#include "egg/gfx/eggTexture.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 */ EGG::ResTIMG mResTIMG;
};

/**
 * @ingroup jsystem-jparticle
 * 
 */
class JPATexture {
public:
    JPATexture(u8 const*);
    virtual ~JPATexture();

    void load(GXTexMapID texMapID) { mTexture.load(texMapID); }

    EGG::Texture* getJUTTexture() { return &mTexture; }
    const char* getName() const { return mpData->mName; }

public:
    EGG::Texture mTexture;
    const JPATextureData* mpData;
};

#endif /* JPATEXTURE_H */