]> git.treefish.org Git - phys/latlib.git/blob - cubelooks.h
...
[phys/latlib.git] / cubelooks.h
1 #ifndef CUBELOOKS_H
2 #define CUBELOOKS_H
3
4 #include <pthread.h>
5 #include <vector>
6
7 using namespace std;
8
9 class cubelooks
10 {
11  public:
12   class cube {
13   public:
14     cube(int l);
15     void draw();
16     int id;
17     float az, alt;
18     float zoom;
19   private:
20     void drawAll();
21     void drawBox();
22     static int allid;
23     float *plaq;
24     float *link;
25     int l;
26   };
27
28   struct env {
29     int *argc;
30     char **argv;
31     int layout[2];
32     double aspect;
33     vector<cube> cubes;
34     int w, h;
35   };
36
37   cubelooks(const int& xcubes, const int& ycubes, const int& l, int *argc, char **argv);
38
39  private:
40   pthread_t glThreadId;
41   env _Env;
42 };
43
44 #endif