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 setFrameWidth(float width);
32 void setLinkWidth(float width);
51 void setLink (const int& posdir,
52 const float& red, const float& green, const float& blue, const float& alpha);
53 void setPlaq (const int& posdir,
54 const float& red, const float& green, const float& blue, const float& alpha);
55 void swapLinkBuffer();
56 void swapPlaqBuffer();
59 void setWireColor(const float& r, const float& g, const float& b, const float& a);
60 void setFrameWidth(float width);
61 void setLinkWidth(float width);
66 static void drawFrame();
96 static int rotcube[3];
97 static culooks::window* getWin();
98 static int getCubeFromPos(int x, int y);
99 static void motionFunc(int x, int y);
100 static void mouseFunc(int button, int state, int x, int y);
101 static void reshapeFunc(int w, int h);
102 static void displayFunc();
103 static void initWindow(int winid);
104 static void idleFunc();
106 static void* glutThread(void *leer);
109 static vector< pair<int,window*> > Windows;
110 static pthread_t glThreadId;