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 #include "enum.h"
5 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
17 typedef void (*GX2EventCallbackFunction)(GX2EventType, void *);
18 
20 {
21  void *oldList;
22  uint32_t oldSize;
23  void *newList;
24  uint32_t newSize;
25  UNKNOWN(8);
26 };
27 CHECK_OFFSET(GX2DisplayListOverrunData, 0x00, oldList);
28 CHECK_OFFSET(GX2DisplayListOverrunData, 0x04, oldSize);
29 CHECK_OFFSET(GX2DisplayListOverrunData, 0x08, newList);
30 CHECK_OFFSET(GX2DisplayListOverrunData, 0x0C, newSize);
31 CHECK_SIZE(GX2DisplayListOverrunData, 0x18);
32 
33 BOOL
34 GX2DrawDone();
35 
36 void
38 
39 void
41 
42 void
43 GX2SetEventCallback(GX2EventType type,
45  void *userData);
46 
47 void
48 GX2GetEventCallback(GX2EventType type,
49  GX2EventCallbackFunction *funcOut,
50  void **userDataOut);
51 
52 OSTime
54 
55 OSTime
57 
58 BOOL
60 
61 void
62 GX2GetSwapStatus(uint32_t *swapCount,
63  uint32_t *flipCount,
64  OSTime *lastFlip,
65  OSTime *lastVsync);
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
void GX2SetEventCallback(GX2EventType type, GX2EventCallbackFunction func, void *userData)
int64_t OSTime
Definition: time.h:17
void(* GX2EventCallbackFunction)(GX2EventType, void *)
Definition: event.h:17
void GX2WaitForFlip()
OSTime GX2GetLastSubmittedTimeStamp()
GX2EventType
Definition: enum.h:140
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)