X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/e48bdb3989c1abbf1d6b3124502299cecae0bdb6..87a34b062f417714377b8639854e49993819ae14:/cubelooks.h?ds=sidebyside diff --git a/cubelooks.h b/cubelooks.h index 6ee63f8..4d75332 100644 --- a/cubelooks.h +++ b/cubelooks.h @@ -3,6 +3,12 @@ #include #include +#include +#include +#include +#include +#include + using namespace std; @@ -11,11 +17,18 @@ class cubelooks public: class cube { public: - cube(); + cube(int l); void draw(); int id; + float az, alt; + float zoom; private: + void drawAll(); + void drawBox(); static int allid; + float *plaq; + float *link; + int l; }; struct env { @@ -25,13 +38,18 @@ class cubelooks double aspect; vector 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; - env Env; + static bool initDone; + static GLXDrawable gDrawable; + static Display *gDisplay; }; #endif