]> git.treefish.org Git - phys/latlib.git/blobdiff - cubelooks.h
...
[phys/latlib.git] / cubelooks.h
index 6e8faffea8038c592755d2109a7534b845b166c9..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;
 
@@ -11,25 +17,39 @@ class cubelooks
  public:
   class cube {
   public:
  public:
   class cube {
   public:
-    cube();
+    cube(int l);
     void draw();
     int id;
     void draw();
     int id;
+    float az, alt;
+    float zoom;
   private:
   private:
+    void drawAll();
+    void drawBox();
     static int allid;
     static int allid;
+    float *plaq;
+    float *link;
+    int l;
   };
 
   struct env {
     int *argc;
     char **argv;
     int layout[2];
   };
 
   struct env {
     int *argc;
     char **argv;
     int layout[2];
+    double aspect;
     vector<cube> cubes;
     vector<cube> cubes;
+    int w, h;
+    GLXDrawable gDrawable;
+    Display *gDisplay;
+    GLXContext gContext;
   };
 
   };
 
-  cubelooks(const int& xcubes, const int& ycubes, int *argc, char **argv);
+  cubelooks(const int& xcubes, const int& ycubes, const int& l, int *argc, char **argv);
 
  private:
   pthread_t glThreadId;
 
  private:
   pthread_t glThreadId;
-  env Env;
+  static bool initDone;
+  static GLXDrawable gDrawable;
+  static Display *gDisplay;
 };
 
 #endif
 };
 
 #endif