]> git.treefish.org Git - phys/latlib.git/blobdiff - cubelooks.h
...
[phys/latlib.git] / cubelooks.h
diff --git a/cubelooks.h b/cubelooks.h
new file mode 100644 (file)
index 0000000..6e8faff
--- /dev/null
@@ -0,0 +1,35 @@
+#ifndef CUBELOOKS_H
+#define CUBELOOKS_H
+
+#include <pthread.h>
+#include <vector>
+
+using namespace std;
+
+class cubelooks
+{
+ public:
+  class cube {
+  public:
+    cube();
+    void draw();
+    int id;
+  private:
+    static int allid;
+  };
+
+  struct env {
+    int *argc;
+    char **argv;
+    int layout[2];
+    vector<cube> cubes;
+  };
+
+  cubelooks(const int& xcubes, const int& ycubes, int *argc, char **argv);
+
+ private:
+  pthread_t glThreadId;
+  env Env;
+};
+
+#endif