summaryrefslogtreecommitdiff
path: root/include/d/d_simple_model.h
blob: ff7ad5e969cf333a5bf18fb643a33c374866ee12 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef D_D_SIMPLE_MODEL_H
#define D_D_SIMPLE_MODEL_H

#include "JSystem/J3DGraphAnimator/J3DModel.h"

class JKRSolidHeap;

class modelList_c {
public:
    void init() {
        mpModel = NULL;
        field_0x4 = NULL;
    }

    void set(J3DModel* model) { mpModel = model; }

    /* 0x0 */ J3DModel* mpModel;
    /* 0x4 */ modelList_c* field_0x4;
};

class diff_model_c {
public:
    /* 80048D60 */ diff_model_c();
    /* 800490EC */ BOOL create(J3DModelData*, int, u8);
    /* 800491F4 */ J3DModelData* getModelData();
    /* 80049210 */ void remove(int);
    /* 80049270 */ void draw();
    /* 80049368 */ void init();
    /* 80049388 */ BOOL isSame(J3DModelData*, int);
    /* 800493FC */ s32 getRoomNo();
    /* 80049408 */ void insert(modelList_c*);

    J3DModel* getModel() { return mpModel; }

private:
    /* 0x00 */ JKRSolidHeap* mpHeap;
    /* 0x04 */ J3DModel* mpModel;
    /* 0x08 */ int mCreateNum;
    /* 0x0C */ modelList_c* mpList;
    /* 0x10 */ u8 mDrawBG;
    /* 0x11 */ s8 mRoomNo;
    /* 0x12 */ u8 field_0x12;
};  // Size: 0x14

class dSmplMdl_draw_c {
public:
    /* 80048CB4 */ dSmplMdl_draw_c();
    /* 80048E0C */ void draw();
    /* 80048EBC */ void entry(J3DModel*, int);
    /* 80048F70 */ BOOL addModel(J3DModelData*, int, u8);
    /* 80049058 */ int removeModel(J3DModelData*, int);

    /* 80048D80 */ virtual ~dSmplMdl_draw_c();

private:
    /* 0x04 */ diff_model_c mModel[8];
    /* 0xA4 */ int mListCount;
    /* 0xA8 */ modelList_c mList[500];
};  // Size: 0x1048

#endif /* D_D_SIMPLE_MODEL_H */