2011-10-19 01:10:15 +02:00
|
|
|
#ifndef _CONFIG_H
|
|
|
|
#define _CONFIG_H
|
|
|
|
|
|
|
|
#define WINDOW_WIDTH 800
|
2011-10-23 21:43:54 +02:00
|
|
|
#define WINDOW_HEIGHT 800
|
2011-10-19 01:10:15 +02:00
|
|
|
|
|
|
|
#define CUBE_SIZE 30
|
2011-10-20 20:28:00 +02:00
|
|
|
#define MOVE_SPEED 7
|
|
|
|
#define ZOOM_LEVEL 25
|
2011-10-19 01:10:15 +02:00
|
|
|
|
2011-12-28 09:43:29 +01:00
|
|
|
// LEDCube constants
|
|
|
|
#define NOT_CONNECTED_ERROR -1
|
|
|
|
#define DEVICE_NOT_FOUND_ERROR -2
|
|
|
|
|
|
|
|
#define SUCCESSFULLY_CONNECTED 1
|
|
|
|
|
2011-10-30 23:55:53 +01:00
|
|
|
// Poor Man's enums
|
|
|
|
#define TOP_ORIENTATION 0x01
|
|
|
|
#define SIDE_ORIENTATION 0x02
|
|
|
|
|
|
|
|
#define RENDER_MODE 0x01
|
|
|
|
#define PICKING_MODE 0x02
|
2011-10-23 21:43:54 +02:00
|
|
|
|
2011-10-19 01:10:15 +02:00
|
|
|
// Materials
|
2011-12-27 18:48:15 +01:00
|
|
|
extern gfloat ledOnMaterial[];
|
|
|
|
extern gfloat ledOffMaterial[];
|
|
|
|
extern gfloat wireMaterial[];
|
|
|
|
extern gfloat innerWireMaterial[];
|
|
|
|
extern gfloat backgroundColor[];
|
2011-10-19 01:10:15 +02:00
|
|
|
|
|
|
|
// Movement
|
2011-12-27 18:48:15 +01:00
|
|
|
extern gfloat lookX, lookZ;
|
|
|
|
extern gfloat eyePos, eyeAngle;
|
|
|
|
extern gint ledOrientation;
|
2011-10-19 01:10:15 +02:00
|
|
|
|
2011-10-20 20:28:00 +02:00
|
|
|
// Objects
|
|
|
|
extern GLUquadricObj *quadric;
|
2011-12-06 22:35:48 +01:00
|
|
|
extern GdkGLConfig *glConfig;
|
|
|
|
extern GdkGLWindow *glWindow;
|
|
|
|
extern GdkGLContext *glContext;
|
|
|
|
|
|
|
|
// Dimensions, positions
|
2011-12-27 18:48:15 +01:00
|
|
|
extern gfloat light0Pos[];
|
2011-10-20 20:28:00 +02:00
|
|
|
|
2011-10-31 00:25:07 +01:00
|
|
|
// LED data
|
2011-12-27 18:48:15 +01:00
|
|
|
extern gint currentFrame[27];
|
2011-10-31 00:25:07 +01:00
|
|
|
|
2011-10-19 01:10:15 +02:00
|
|
|
#endif
|
|
|
|
|