1b468b8c22
The idea is to use OpenGL and some simple C code to display a 3D cube. With the mouse you can define which LED should be on or off on a particular frame. With this technique, you can define whole sequences of frames to form animations.
21 lines
297 B
C
21 lines
297 B
C
#ifndef _CONFIG_H
|
|
#define _CONFIG_H
|
|
|
|
#define WINDOW_WIDTH 800
|
|
#define WINDOW_HEIGHT 600
|
|
|
|
#define CUBE_SIZE 30
|
|
#define MOVE_SPEED 5
|
|
|
|
#define PI 3.14159265
|
|
|
|
// Materials
|
|
extern float ledOnMaterial[];
|
|
|
|
// Movement
|
|
extern float lookX, lookZ;
|
|
extern float eyePos, eyeAngle;
|
|
|
|
#endif
|
|
|