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 
16 
17 typedef enum GX2EventType
18 {
22 } GX2EventType;
23 
24 typedef void (*GX2EventCallbackFunction)(GX2EventType, void *);
25 
27 {
28  void *oldList;
29  uint32_t oldSize;
30  void *newList;
31  uint32_t newSize;
32  UNKNOWN(8);
33 };
34 CHECK_OFFSET(GX2DisplayListOverrunData, 0x00, oldList);
35 CHECK_OFFSET(GX2DisplayListOverrunData, 0x04, oldSize);
36 CHECK_OFFSET(GX2DisplayListOverrunData, 0x08, newList);
37 CHECK_OFFSET(GX2DisplayListOverrunData, 0x0C, newSize);
38 CHECK_SIZE(GX2DisplayListOverrunData, 0x18);
39 
40 BOOL
41 GX2DrawDone();
42 
43 void
45 
46 void
48 
49 void
50 GX2SetEventCallback(GX2EventType type,
52  void *userData);
53 
54 void
55 GX2GetEventCallback(GX2EventType type,
56  GX2EventCallbackFunction *funcOut,
57  void **userDataOut);
58 
59 OSTime
61 
62 OSTime
64 
65 BOOL
67 
68 void
69 GX2GetSwapStatus(uint32_t *swapCount,
70  uint32_t *flipCount,
71  OSTime *lastFlip,
72  OSTime *lastVsync);
73 
74 #ifdef __cplusplus
75 }
76 #endif
77 
void GX2SetEventCallback(GX2EventType type, GX2EventCallbackFunction func, void *userData)
int64_t OSTime
Definition: time.h:17
void(* GX2EventCallbackFunction)(GX2EventType, void *)
Definition: event.h:24
void GX2WaitForFlip()
OSTime GX2GetLastSubmittedTimeStamp()
GX2EventType
Definition: event.h:17
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)