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-10-20 20:28:00 +02:00
|
|
|
#define PI 3.1415926535897932
|
2011-10-19 01:10:15 +02:00
|
|
|
|
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
|
|
|
|
extern float ledOnMaterial[];
|
2011-10-23 21:43:54 +02:00
|
|
|
extern float ledOffMaterial[];
|
2011-10-20 20:28:00 +02:00
|
|
|
extern float wireMaterial[];
|
|
|
|
extern float innerWireMaterial[];
|
2011-12-06 22:35:48 +01:00
|
|
|
extern float backgroundColor[];
|
2011-10-19 01:10:15 +02:00
|
|
|
|
|
|
|
// Movement
|
|
|
|
extern float lookX, lookZ;
|
|
|
|
extern float eyePos, eyeAngle;
|
2011-10-31 00:25:07 +01:00
|
|
|
extern int 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
|
|
|
|
extern float light0Pos[];
|
2011-10-20 20:28:00 +02:00
|
|
|
|
2011-10-31 00:25:07 +01:00
|
|
|
// LED data
|
|
|
|
extern int currentFrame[27];
|
|
|
|
|
2011-10-19 01:10:15 +02:00
|
|
|
#endif
|
|
|
|
|