mini-led-cube/editor/src/config.h
Aaron Mueller 37e885f02e Add the picking feature.
We can now select a LED on the screen and get the index of the LED.
To get the right index, we use the color picking technique mentioned
in the OpenGL RedBook. This works suprisingly pretty well (and fast!).
2011-10-30 23:55:53 +01:00

35 lines
613 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[];
// Movement
extern float lookX, lookZ;
extern float eyePos, eyeAngle;
// Objects
extern GLUquadricObj *quadric;
#endif