45 lines
858 B
C
45 lines
858 B
C
#ifndef _CONFIG_H
|
|
#define _CONFIG_H
|
|
|
|
#define WINDOW_WIDTH 800
|
|
#define WINDOW_HEIGHT 800
|
|
|
|
#define CUBE_SIZE 30
|
|
#define MOVE_SPEED 7
|
|
#define ZOOM_LEVEL 25
|
|
|
|
#define PI 3.1415926535897932
|
|
|
|
// Poor Man's enums
|
|
#define TOP_ORIENTATION 0x01
|
|
#define SIDE_ORIENTATION 0x02
|
|
|
|
#define RENDER_MODE 0x01
|
|
#define PICKING_MODE 0x02
|
|
|
|
// Materials
|
|
extern float ledOnMaterial[];
|
|
extern float ledOffMaterial[];
|
|
extern float wireMaterial[];
|
|
extern float innerWireMaterial[];
|
|
extern float backgroundColor[];
|
|
|
|
// Movement
|
|
extern float lookX, lookZ;
|
|
extern float eyePos, eyeAngle;
|
|
extern int ledOrientation;
|
|
|
|
// Objects
|
|
extern GLUquadricObj *quadric;
|
|
extern GdkGLConfig *glConfig;
|
|
extern GdkGLWindow *glWindow;
|
|
extern GdkGLContext *glContext;
|
|
|
|
// Dimensions, positions
|
|
extern float light0Pos[];
|
|
|
|
// LED data
|
|
extern int currentFrame[27];
|
|
|
|
#endif
|
|
|