wut  v1.7.0
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 {
22  void *oldList;
23 
25  uint32_t oldSize;
26 
28  void *newList;
29 
31  uint32_t newSize;
32 
33  WUT_UNKNOWN_BYTES(8);
34 };
35 WUT_CHECK_OFFSET(GX2DisplayListOverrunData, 0x00, oldList);
36 WUT_CHECK_OFFSET(GX2DisplayListOverrunData, 0x04, oldSize);
37 WUT_CHECK_OFFSET(GX2DisplayListOverrunData, 0x08, newList);
38 WUT_CHECK_OFFSET(GX2DisplayListOverrunData, 0x0C, newSize);
39 WUT_CHECK_SIZE(GX2DisplayListOverrunData, 0x18);
40 
41 BOOL
43 
44 void
46 
47 void
49 
50 void
53  void *userData);
54 
55 void
57  GX2EventCallbackFunction *funcOut,
58  void **userDataOut);
59 
60 OSTime
62 
63 OSTime
65 
66 void
67 GX2GetSwapStatus(uint32_t *swapCount,
68  uint32_t *flipCount,
69  OSTime *lastFlip,
70  OSTime *lastVsync);
71 
72 BOOL
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