mirror of
https://github.com/zeldaret/ss
synced 2026-05-23 15:01:38 -04:00
26af4db82d
* update from dtk-template and start work towards using clangd * include <a> -> "a" * Update build.yml * remove/add non-trivial class in union warning
48 lines
1.1 KiB
C++
48 lines
1.1 KiB
C++
#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
|