10 #include <X11/Xutil.h>
19 culooks (const char* name, const int& xcubes, const int& ycubes, const int& l, int *argc, char **argv);
20 void setLink (const int& cubeid, const int& posdir,
21 const float& red, const float& green, const float& blue, const float& alpha);
22 void setPlaq (const int& cubeid, const int& posdir,
23 const float& red, const float& green, const float& blue, const float& alpha);
25 void hidePlaqs(const int& cubeid);
27 void hideLinks(const int& cubeid);
29 void setBgColor(const float& red, const float& green, const float& blue, const float& alpha);
30 void setWireColor(const float& r, const float& g, const float& b, const float& a);
49 void setLink (const int& posdir,
50 const float& red, const float& green, const float& blue, const float& alpha);
51 void setPlaq (const int& posdir,
52 const float& red, const float& green, const float& blue, const float& alpha);
53 void swapLinkBuffer();
54 void swapPlaqBuffer();
57 void setWireColor(const float& r, const float& g, const float& b, const float& a);
62 static void drawFrame();
90 static int rotcube[3];
91 static culooks::window* getWin();
92 static int getCubeFromPos(int x, int y);
93 static void motionFunc(int x, int y);
94 static void mouseFunc(int button, int state, int x, int y);
95 static void reshapeFunc(int w, int h);
96 static void displayFunc();
97 static void initWindow(int winid);
98 static void idleFunc();
100 static void* glutThread(void *leer);
103 static vector< pair<int,window*> > Windows;
104 static pthread_t glThreadId;