X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/56501911055f24d1b06f2847c55e6d359dbd1760..37439b2f85687ddafa4097d07237fc17a0a6db0d:/culooks.cpp?ds=sidebyside diff --git a/culooks.cpp b/culooks.cpp index 8c41d23..cb5eda7 100644 --- a/culooks.cpp +++ b/culooks.cpp @@ -1,5 +1,12 @@ #include "culooks.h" +#include +#include +#include +#include +#include +#include + #include #include @@ -8,94 +15,8 @@ pthread_t culooks::glThreadId; int culooks::windowid = 0; -int culooks::cube::allid = 0; - using namespace std; -void culooks::cube::draw() -{ - glMatrixMode(GL_MODELVIEW); - glPushMatrix(); - - //cout << zoom << endl; - - glScalef(zoom, zoom, zoom); - glRotatef(az, 0, 1, 0); - glRotatef(alt, 1, 0, 0); - - /* - glBegin(GL_QUADS); - glVertex2f(-1, -1); glVertex2f(1, -1); glVertex2f(1, 1); glVertex2f(-1, 1); - glEnd(); - */ - - //drawBox(); - drawAll(); - - glPopMatrix(); -} - -void culooks::cube::drawAll() -{ - glMatrixMode(GL_MODELVIEW); - glPushMatrix(); - - glTranslatef(-1,-1,-1); - - for (int iz=0; iz