X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/b8c3dcf5e075cc961b2693b1fcb8d1b8604e8f7c..2c7ea0058473eb98219ff87c64e28f31fac34b90:/culooks.h?ds=inline diff --git a/culooks.h b/culooks.h new file mode 100644 index 0000000..45fa319 --- /dev/null +++ b/culooks.h @@ -0,0 +1,61 @@ +#ifndef CULOOKS_H +#define CULOOKS_H + +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace std; + +class culooks +{ + public: + class cube { + public: + 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 window { + int layout[2]; + double aspect; + vector cubes; + int w, h; + int gwinid; + bool initialized; + string name; + }; + + culooks (const char* name, const int& xcubes, const int& ycubes, const int& l, int *argc, char **argv); + + static vector< pair > Windows; + + struct wincontext { + GLXDrawable gDrawable; + Display *gDisplay; + GLXContext gContext; + }; + + private: + static pthread_t glThreadId; + static int windowid; + int mywid; + +}; + +#endif