summaryrefslogtreecommitdiff
path: root/include/egg/core/eggAsyncDisplay.h
blob: 6f33d7931d129f058aedc5fc49353b34bbba1582 (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
#ifndef EGG_ASYNC_DISPLAY_H
#define EGG_ASYNC_DISPLAY_H

#include "common.h"
#include "egg/core/eggDisplay.h"


namespace EGG {

class AsyncDisplay : public Display {
public:
    // vtable at 0x04
    /* vt 0x08 */ virtual void beginFrame();
    /* vt 0x10 */ virtual void endRender();
    /* vt 0x14 */ virtual void endFrame();
    /* vt 0x18 */ virtual u32 getTickPerFrame();
    /* vt 0x1C */ virtual void preVRetrace();

private:
    inline void waitForMsg(bool);

public:
    /* 0x2C */ char field_0x2C[0x60 - 0x2C];
    /* 0x60 */ OSThreadQueue mThreadQueue;
    /* 0x68 */ OSMessageQueue mMesgQueue;
    /* 0x88 */ OSMessage mMesgBuf[4];
    /* 0x98 */ s32 field_0x98;
    /* 0x9C */ f32 field_0x9C;
    /* 0xA0 */ f32 field_0xA0;
    /* 0xA4 */ s32 field_0xA4;
    /* 0xA8 */ s32 field_0xA8;
    /* 0xAC */ s32 field_0xAC;
    /* 0xB0 */ u32 field_0xB0;
    /* 0xB4 */ s32 field_0xB4;
    /* 0xB8 */ u32 field_0xB8;
    /* 0xBC */ u32 field_0xBC;

public:
    AsyncDisplay(u8 maxRetrace);
    f32 calcS();
    void clearEFB();
    void clearEFB(u16, u16, u16, u16, u16, u16, nw4r::ut::Color);
};

} // namespace EGG

#endif