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);
31 void setLineWidth(float width);
50 void setLink (const int& posdir,
51 const float& red, const float& green, const float& blue, const float& alpha);
52 void setPlaq (const int& posdir,
53 const float& red, const float& green, const float& blue, const float& alpha);
54 void swapLinkBuffer();
55 void swapPlaqBuffer();
58 void setWireColor(const float& r, const float& g, const float& b, const float& a);
63 static void drawFrame();
92 static int rotcube[3];
93 static culooks::window* getWin();
94 static int getCubeFromPos(int x, int y);
95 static void motionFunc(int x, int y);
96 static void mouseFunc(int button, int state, int x, int y);
97 static void reshapeFunc(int w, int h);
98 static void displayFunc();
99 static void initWindow(int winid);
100 static void idleFunc();
102 static void* glutThread(void *leer);
105 static vector< pair<int,window*> > Windows;
106 static pthread_t glThreadId;