X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/0e276c2770688b3cc7676ee84c8e35246621f6df..06580ebb8b81c5624a2a64f5dfa079e508a7b2b8:/cubelooks.h diff --git a/cubelooks.h b/cubelooks.h index 6e8faff..4d75332 100644 --- a/cubelooks.h +++ b/cubelooks.h @@ -3,6 +3,12 @@ #include #include +#include +#include +#include +#include +#include + using namespace std; @@ -11,25 +17,39 @@ 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 { int *argc; char **argv; int layout[2]; + 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