Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JUTXfb.h
Go to the documentation of this file.
1#ifndef JUTXFB_H
2#define JUTXFB_H
3
5
7class JKRHeap;
8
13class JUTXfb {
14public:
15 enum EXfbNumber { // TODO: placeholder
16 UNK_0 = 0,
17 UNK_1 = 1,
18 UNK_2 = 2,
19 UNK_3 = 3,
20 };
21
22 /* 802E5214 */ void clearIndex();
23 /* 802E5228 */ void common_init(int);
24 /* 802E5260 */ JUTXfb(_GXRenderModeObj const*, JKRHeap*, JUTXfb::EXfbNumber);
25 /* 802E5308 */ ~JUTXfb();
26 /* 802E5378 */ void delXfb(int);
27 /* 802E53B8 */ static JUTXfb* createManager(JKRHeap*, JUTXfb::EXfbNumber);
28 /* 802E5424 */ static void destroyManager();
29 /* 802E5454 */ void initiate(u16, u16, JKRHeap*, JUTXfb::EXfbNumber);
30
31 s32 getBufferNum() const { return mBufferNum; }
35 s32 getSDrawingFlag() const { return mSDrawingFlag; }
36
37 void* getDrawnXfb() const {
38 if (mDrawnXfbIndex >= 0)
39 return mBuffer[mDrawnXfbIndex];
40 return NULL;
41 }
42
43 void* getDrawingXfb() const {
44 if (mDrawingXfbIndex >= 0)
46 return NULL;
47 }
48
49 void* getDisplayingXfb() const {
50 if (mDisplayingXfbIndex >= 0)
52 return NULL;
53 }
54
57 void setDrawnXfbIndex(s16 index) { mDrawnXfbIndex = index; }
58 void setDrawingXfbIndex(s16 index) { mDrawingXfbIndex = index; }
59
60 static JUTXfb* getManager() { return sManager; }
61
62private:
64
65private:
66 /* 0x00 */ void* mBuffer[3];
67 /* 0x0C */ bool mXfbAllocated[3];
68 /* 0x10 */ s32 mBufferNum;
70 /* 0x16 */ s16 mDrawnXfbIndex;
72 /* 0x1C */ s32 mSDrawingFlag;
73};
74
75#endif /* JUTXFB_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition JKRHeap.h:16
Definition JUTXfb.h:13
void * getDisplayingXfb() const
Definition JUTXfb.h:49
s16 getDisplayingXfbIndex() const
Definition JUTXfb.h:34
static void destroyManager()
Definition JUTXfb.cpp:102
static JUTXfb * sManager
Definition JUTXfb.h:63
s16 getDrawingXfbIndex() const
Definition JUTXfb.h:33
s32 getSDrawingFlag() const
Definition JUTXfb.h:35
static JUTXfb * getManager()
Definition JUTXfb.h:60
s32 mBufferNum
Definition JUTXfb.h:68
void setDrawingXfbIndex(s16 index)
Definition JUTXfb.h:58
void * getDrawingXfb() const
Definition JUTXfb.h:43
s16 mDisplayingXfbIndex
Definition JUTXfb.h:71
s16 mDrawnXfbIndex
Definition JUTXfb.h:70
void setDisplayingXfbIndex(s16 index)
Definition JUTXfb.h:55
s32 getBufferNum() const
Definition JUTXfb.h:31
~JUTXfb()
Definition JUTXfb.cpp:82
void setSDrawingFlag(s32 flag)
Definition JUTXfb.h:56
static JUTXfb * createManager(JKRHeap *, JUTXfb::EXfbNumber)
Definition JUTXfb.cpp:95
void * getDrawnXfb() const
Definition JUTXfb.h:37
void clearIndex()
Definition JUTXfb.cpp:44
void setDrawnXfbIndex(s16 index)
Definition JUTXfb.h:57
s32 mSDrawingFlag
Definition JUTXfb.h:72
s16 mDrawingXfbIndex
Definition JUTXfb.h:69
s16 getDrawnXfbIndex() const
Definition JUTXfb.h:32
void common_init(int)
Definition JUTXfb.cpp:50
void * mBuffer[3]
Definition JUTXfb.h:66
bool mXfbAllocated[3]
Definition JUTXfb.h:67
void initiate(u16, u16, JKRHeap *, JUTXfb::EXfbNumber)
Definition JUTXfb.cpp:107
EXfbNumber
Definition JUTXfb.h:15
@ UNK_3
Definition JUTXfb.h:19
@ UNK_0
Definition JUTXfb.h:16
@ UNK_1
Definition JUTXfb.h:17
@ UNK_2
Definition JUTXfb.h:18
void delXfb(int)
Definition JUTXfb.cpp:89
static volatile BOOL flag
Definition dspproc.cpp:20
Definition GXStruct.h:22
signed short s16
Definition types.h:5
unsigned short u16
Definition types.h:9
signed long s32
Definition types.h:6