]> git.treefish.org Git - phys/latlib.git/blob - cubelooks.h
6e8faffea8038c592755d2109a7534b845b166c9
[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     vector<cube> cubes;
26   };
27
28   cubelooks(const int& xcubes, const int& ycubes, int *argc, char **argv);
29
30  private:
31   pthread_t glThreadId;
32   env Env;
33 };
34
35 #endif