wut v1.8.0
Wii U Toolchain
Loading...
Searching...
No Matches
event.h
Go to the documentation of this file.
1#pragma once
2#include <wut.h>
3#include <coreinit/time.h>
4#include "enum.h"
5
12#ifdef __cplusplus
13extern "C" {
14#endif
15
17typedef void (*GX2EventCallbackFunction)(GX2EventType, void *);
18
20{
22 void *oldList;
23
25 uint32_t oldSize;
26
28 void *newList;
29
31 uint32_t newSize;
32
33 WUT_UNKNOWN_BYTES(8);
34};
35WUT_CHECK_OFFSET(GX2DisplayListOverrunData, 0x00, oldList);
36WUT_CHECK_OFFSET(GX2DisplayListOverrunData, 0x04, oldSize);
37WUT_CHECK_OFFSET(GX2DisplayListOverrunData, 0x08, newList);
38WUT_CHECK_OFFSET(GX2DisplayListOverrunData, 0x0C, newSize);
39WUT_CHECK_SIZE(GX2DisplayListOverrunData, 0x18);
40
41BOOL
43
44void
46
47void
49
50void
53 void *userData);
54
55void
58 void **userDataOut);
59
62
65
66void
67GX2GetSwapStatus(uint32_t *swapCount,
68 uint32_t *flipCount,
69 OSTime *lastFlip,
70 OSTime *lastVsync);
71
72BOOL
74
75#ifdef __cplusplus
76}
77#endif
78
int64_t OSTime
Definition time.h:18
GX2EventType
Definition enum.h:199
void * oldList
Pointer to overrun display list.
Definition event.h:22
void * newList
Pointer to new display list.
Definition event.h:28
uint32_t newSize
Size of new display list.
Definition event.h:31
uint32_t oldSize
Size of overrun display list.
Definition event.h:25
void GX2WaitForVsync()
void(* GX2EventCallbackFunction)(GX2EventType, void *)
Definition event.h:17
OSTime GX2GetLastSubmittedTimeStamp()
void GX2GetEventCallback(GX2EventType type, GX2EventCallbackFunction *funcOut, void **userDataOut)
BOOL GX2WaitTimeStamp(OSTime time)
BOOL GX2DrawDone()
void GX2GetSwapStatus(uint32_t *swapCount, uint32_t *flipCount, OSTime *lastFlip, OSTime *lastVsync)
void GX2WaitForFlip()
OSTime GX2GetRetiredTimeStamp()
void GX2SetEventCallback(GX2EventType type, GX2EventCallbackFunction func, void *userData)
int32_t BOOL
Definition wut_types.h:7