37e885f02e
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!).
13 lines
266 B
C
13 lines
266 B
C
#ifndef _INPUT_H
|
|
#define _INPUT_H
|
|
|
|
void moveCameraPosition(float direction);
|
|
void moveCameraAngle(float angle);
|
|
|
|
void keyboard(unsigned char key, int x, int y);
|
|
void keyboard_special(int key, int x, int y);
|
|
|
|
void mouse(int button, int state, int x, int y);
|
|
|
|
#endif
|
|
|