]> 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();
15     void draw();
16     int id;
17   private:
18     static int allid;
19   };
20
21   struct env {
22     int *argc;
23     char **argv;
24     int layout[2];
25     double aspect;
26     vector<cube> cubes;
27     int w, h;
28   };
29
30   cubelooks(const int& xcubes, const int& ycubes, int *argc, char **argv);
31
32  private:
33   pthread_t glThreadId;
34   env Env;
35 };
36
37 #endif