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!).
15 lines
174 B
C
15 lines
174 B
C
#ifndef _DISPLAY_H
|
|
#define _DISPLAY_H
|
|
|
|
|
|
void drawLEDs(int orientation, int mode);
|
|
void drawWires();
|
|
|
|
void display();
|
|
void displayPickingObjects();
|
|
|
|
void setScene();
|
|
|
|
#endif
|
|
|