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);
45 void setLink (const int& posdir,
46 const float& red, const float& green, const float& blue, const float& alpha);
47 void setPlaq (const int& posdir,
48 const float& red, const float& green, const float& blue, const float& alpha);
49 void swapLinkBuffer();
50 void swapPlaqBuffer();
56 static void drawFrame();
82 static int rotcube[3];
83 static culooks::window* getWin();
84 static int getCubeFromPos(int x, int y);
85 static void motionFunc(int x, int y);
86 static void mouseFunc(int button, int state, int x, int y);
87 static void reshapeFunc(int w, int h);
88 static void displayFunc();
89 static void initWindow(int winid);
90 static void idleFunc();
92 static void* glutThread(void *leer);
95 static vector< pair<int,window*> > Windows;
96 static pthread_t glThreadId;