+ for (int ibuf=0; ibuf<2; ibuf++)
+ for (int i=0; i<l*l*l*3; i++) {
+ linkbuf[ibuf][i*4+0]=1; linkbuf[ibuf][i*4+3]=0.6;
+ plaqbuf[ibuf][i*4+1]=1; plaqbuf[ibuf][i*4+3]=0.2;
+ }
+}
+
+void culooks::cube::drawFrame()
+{
+ glBegin(GL_LINES);
+
+ glColor4f(0, 0, 0, 1);
+
+ glVertex3f(-1.0f, 1.0f, -1.0f);
+ glVertex3f( 1.0f, 1.0f, -1.0f);
+ glVertex3f(-1.0f, -1.0f, -1.0f);
+ glVertex3f( 1.0f, -1.0f, -1.0f);
+ glVertex3f(-1.0f, 1.0f, 1.0f);
+ glVertex3f( 1.0f, 1.0f, 1.0f);
+ glVertex3f(-1.0f, -1.0f, 1.0f);
+ glVertex3f( 1.0f, -1.0f, 1.0f);
+
+ glVertex3f( 1.0f, 1.0f, -1.0f);
+ glVertex3f( 1.0f, -1.0f, -1.0f);
+ glVertex3f( -1.0f, 1.0f, -1.0f);
+ glVertex3f( -1.0f, -1.0f, -1.0f);
+ glVertex3f( 1.0f, 1.0f, 1.0f);
+ glVertex3f( 1.0f, -1.0f, 1.0f);
+ glVertex3f( -1.0f, 1.0f, 1.0f);
+ glVertex3f( -1.0f, -1.0f, 1.0f);
+
+ glVertex3f( -1.0f, -1.0f, 1.0f);
+ glVertex3f( -1.0f, -1.0f, -1.0f);
+ glVertex3f( -1.0f, 1.0f, 1.0f);
+ glVertex3f( -1.0f, 1.0f, -1.0f);
+ glVertex3f( 1.0f, -1.0f, 1.0f);
+ glVertex3f( 1.0f, -1.0f, -1.0f);
+ glVertex3f( 1.0f, 1.0f, 1.0f);
+ glVertex3f( 1.0f, 1.0f, -1.0f);
+
+ glEnd();