MTek-GDL 0.100.4-muffintrap
Loading...
Searching...
No Matches
mgdl-wii-types.h
1
5#ifndef _GDL_WII_TYPES_H
6#define _GDL_WII_TYPES_H
7
8#include <gccore.h>
9
10
11#ifndef GDL_PLATFORM_WII
13#define GDL_PLATFORM_WII
14#endif
15
16
17#ifndef PI
18#define PI 3.141592653589793f
19#endif
20
21#ifndef ROTPI
22#define ROTPI PI/180
23#endif
24
25
26
27
29namespace gdl {
30
32typedef void (*ErrorCallback)(const char *message);
33
35typedef bool (ImageCapFunc)(const char *fileName);
36
37typedef void (InputPollFunc)(void);
38
39
41
46namespace wii {
47
48
50
53 typedef struct {
54 s16 x;
55 s16 y;
56 } VERT2s16;
57
58
60
63 typedef struct {
64 f32 u;
65 f32 v;
66 } TEX2f32;
67
68
70
73 typedef struct {
74 f32 x;
75 f32 y;
76 f32 z;
77 } VERT3f32;
78
79
80};
81
82
83}
84
85
86#endif // _GDL_WII_TYPES_H
typedef void(ConnectCallbackFunc(bool))
Keyboard and mouse connect/disconnect callback.
Library namespace.
Definition wii-globals.cpp:12
void(* ErrorCallback)(const char *message)
For the error callback.
Definition mgdl-wii-types.h:32
bool() ImageCapFunc(const char *fileName)
For the internal screen image capture function pointer.
Definition mgdl-wii-types.h:35
UV texture coordinate.
Definition mgdl-wii-types.h:63
2D vertex coordinate.
Definition mgdl-wii-types.h:53
3D vertex coordinate.
Definition mgdl-wii-types.h:73