spincontrol.h
777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#define SPIN_MODEL_TYPE 9
#define SPIN_DLIST_TYPE 10
#define SPIN_TRAP_TYPE 11
#define SPIN_MOUSE_TYPE 12
#define SPIN_PROJ_TYPE 13
typedef struct {
long model;
} ModelInfo;
typedef struct {
long trap;
long type;
} TrapInfo;
typedef struct {
long dlsize;
} DListInfo;
/*
* careful while adding more entries in this struct. You also have to add more
* entries in DlistInfo to avoid stepping on the dlist
*/
typedef struct {
long x;
long y;
long buttons;
long align64;
} MouseInfo;
typedef struct {
long fov;
float aspect;
long near;
long far;
} ProjInfo;
typedef struct {
long long int type;
union {
ModelInfo model;
DListInfo dlist;
TrapInfo trap;
MouseInfo mouse;
ProjInfo proj;
} u_msg;
} SpinControl;