mirror of
https://github.com/encounter/ogws.git
synced 2026-03-30 11:33:37 -07:00
46 lines
1.0 KiB
C++
46 lines
1.0 KiB
C++
#ifndef EGG_CORE_ASYNC_DISPLAY_H
|
|
#define EGG_CORE_ASYNC_DISPLAY_H
|
|
#include "types_egg.h"
|
|
#include "eggDisplay.h"
|
|
#include "types_nw4r.h"
|
|
#include <revolution/GX.h>
|
|
#include <revolution/OS/OSThread.h>
|
|
|
|
namespace EGG
|
|
{
|
|
struct AsyncDisplay : Display
|
|
{
|
|
AsyncDisplay(u8);
|
|
void syncTick();
|
|
void clearEFB(u16, u16, u16, u16, u16, u16, nw4r::ut::Color);
|
|
virtual void beginFrame();
|
|
virtual void beginRender();
|
|
virtual void endRender();
|
|
virtual u32 getTickPerFrame();
|
|
|
|
char UNK_0x28[0x30];
|
|
OSThreadQueue mThreadQueue; // at 0x58
|
|
UNKWORD WORD_0x60;
|
|
f32 FLOAT_0x64;
|
|
UNKWORD WORD_0x68;
|
|
UNKWORD WORD_0x6C;
|
|
u8 BYTE_0x70;
|
|
char UNK_0x71[3];
|
|
u32 WORD_0x74;
|
|
UNKWORD WORD_0x78;
|
|
s32 OSTICK_0x7C;
|
|
s32 OSTICK_0x80;
|
|
};
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
void PostRetraceCallback(u32 retraceCount);
|
|
void DrawDoneCallback(void);
|
|
static EGG::AsyncDisplay *spSelector;
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif |