]> git.treefish.org Git - phys/latlib.git/blobdiff - cubelooks.h
...
[phys/latlib.git] / cubelooks.h
index 6a404a7284635fb258676d7508221c556229c774..4d75332c07a30731c01340f3543106ab03d0901e 100644 (file)
@@ -3,6 +3,12 @@
 
 #include <pthread.h>
 #include <vector>
 
 #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;
 
 
 using namespace std;
 
@@ -32,13 +38,18 @@ class cubelooks
     double aspect;
     vector<cube> cubes;
     int w, h;
     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;
   };
 
   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
 };
 
 #endif