spincontrol.h 777 Bytes
#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;