#include <pthread.h>
#include <vector>
+#include <GL/glut.h>
+#include <GL/glx.h>
+#include <GL/gl.h>
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+
using namespace std;
double aspect;
vector<cube> cubes;
int w, h;
+ GLXDrawable gDrawable;
+ Display *gDisplay;
+ GLXContext gContext;
};
cubelooks(const int& xcubes, const int& ycubes, const int& l, int *argc, char **argv);
private:
pthread_t glThreadId;
- env _Env;
+ static bool initDone;
+ static GLXDrawable gDrawable;
+ static Display *gDisplay;
};
#endif