mini-led-cube/editor/src/config.h

46 lines
858 B
C
Raw Normal View History

#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[];
2011-12-06 22:35:48 +01:00
extern float backgroundColor[];
// Movement
extern float lookX, lookZ;
extern float eyePos, eyeAngle;
extern int ledOrientation;
// 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[];
// LED data
extern int currentFrame[27];
#endif