WUT  0.1
Wii U Toolchain
event.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 #include <coreinit/time.h>
4 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 typedef enum GX2EventType
16 {
20 } GX2EventType;
21 
22 typedef void (*GX2EventCallbackFunction)(GX2EventType, void *);
23 
25 {
26  void *oldList;
27  uint32_t oldSize;
28  void *newList;
29  uint32_t newSize;
30  UNKNOWN(8);
31 };
32 CHECK_OFFSET(GX2DisplayListOverrunData, 0x00, oldList);
33 CHECK_OFFSET(GX2DisplayListOverrunData, 0x04, oldSize);
34 CHECK_OFFSET(GX2DisplayListOverrunData, 0x08, newList);
35 CHECK_OFFSET(GX2DisplayListOverrunData, 0x0C, newSize);
36 CHECK_SIZE(GX2DisplayListOverrunData, 0x18);
37 
38 BOOL
39 GX2DrawDone();
40 
41 void
43 
44 void
46 
47 void
48 GX2SetEventCallback(GX2EventType type,
50  void *userData);
51 
52 void
53 GX2GetEventCallback(GX2EventType type,
54  GX2EventCallbackFunction *funcOut,
55  void **userDataOut);
56 
57 OSTime
59 
60 OSTime
62 
63 BOOL
65 
66 void
67 GX2GetSwapStatus(uint32_t *swapCount,
68  uint32_t *flipCount,
69  OSTime *lastFlip,
70  OSTime *lastVsync);
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
void GX2SetEventCallback(GX2EventType type, GX2EventCallbackFunction func, void *userData)
int64_t OSTime
Definition: time.h:17
void(* GX2EventCallbackFunction)(GX2EventType, void *)
Definition: event.h:22
void GX2WaitForFlip()
OSTime GX2GetLastSubmittedTimeStamp()
GX2EventType
Definition: event.h:15
int BOOL
Definition: wut_types.h:4
BOOL GX2WaitTimeStamp(OSTime time)
OSTime GX2GetRetiredTimeStamp()
BOOL GX2DrawDone()
void GX2GetEventCallback(GX2EventType type, GX2EventCallbackFunction *funcOut, void **userDataOut)
void GX2WaitForVsync()
void GX2GetSwapStatus(uint32_t *swapCount, uint32_t *flipCount, OSTime *lastFlip, OSTime *lastVsync)