wut  1.0.0-beta9
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
42 GX2DrawDone();
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 
OSTime
int64_t OSTime
Definition: time.h:18
GX2GetSwapStatus
void GX2GetSwapStatus(uint32_t *swapCount, uint32_t *flipCount, OSTime *lastFlip, OSTime *lastVsync)
GX2GetEventCallback
void GX2GetEventCallback(GX2EventType type, GX2EventCallbackFunction *funcOut, void **userDataOut)
GX2DisplayListOverrunData::oldList
void * oldList
Pointer to overrun display list.
Definition: event.h:22
GX2GetLastSubmittedTimeStamp
OSTime GX2GetLastSubmittedTimeStamp()
GX2SetEventCallback
void GX2SetEventCallback(GX2EventType type, GX2EventCallbackFunction func, void *userData)
GX2DisplayListOverrunData
Definition: event.h:19
GX2EventType
GX2EventType
Definition: enum.h:157
GX2EventCallbackFunction
void(* GX2EventCallbackFunction)(GX2EventType, void *)
Definition: event.h:17
GX2WaitForFlip
void GX2WaitForFlip()
GX2DrawDone
BOOL GX2DrawDone()
wut.h
time.h
GX2GetRetiredTimeStamp
OSTime GX2GetRetiredTimeStamp()
BOOL
int32_t BOOL
Definition: wut_types.h:4
GX2WaitTimeStamp
BOOL GX2WaitTimeStamp(OSTime time)
GX2DisplayListOverrunData::oldSize
uint32_t oldSize
Size of overrun display list.
Definition: event.h:25
GX2WaitForVsync
void GX2WaitForVsync()
GX2DisplayListOverrunData::newSize
uint32_t newSize
Size of new display list.
Definition: event.h:31
GX2DisplayListOverrunData::newList
void * newList
Pointer to new display list.
Definition: event.h:28
enum.h