glDisable(GL_BLEND);
glPushMatrix();
glScalef(zoom*1.01, zoom*1.01, zoom*1.01);
- glRotatef(az, 0, 1, 0);
glRotatef(alt, 1, 0, 0);
+ glRotatef(az, 0, 1, 0);
glColor4f(wireColor[0], wireColor[1], wireColor[2], wireColor[3]);
+ glLineWidth(framewidth);
glutWireCube(2);
glPopMatrix();
glEnable(GL_BLEND);
glPushMatrix();
glScalef(zoom, zoom, zoom);
- glRotatef(az, 0, 1, 0);
glRotatef(alt, 1, 0, 0);
+ glRotatef(az, 0, 1, 0);
drawAll();
glPopMatrix();
glTranslatef(2.0*ix/l,2.0*iy/l,2.0*iz/l);
glScalef(2.0/l,2.0/l,2.0/l);
+ glLineWidth(linkwidth);
+
/* draw links */
if (!hidelinks) {
glBegin(GL_LINES);
glEnd();
}
+ glLineWidth(1);
+
/* draw plaquettes */
if (!hideplaquettes) {
glBegin(GL_QUADS);
link = linkbuf[0];
plaq = plaqbuf[0];
- az = 30;
- alt = -20;
- zoom = 0.6;
+ az = 45;
+ alt = -30;
+ zoom = 0.57;
id = allid;
allid++;
wireColor[2] = b;
wireColor[3] = a;
}
+
+void culooks::cube::setFrameWidth(float width) {
+ framewidth = width;
+}
+
+void culooks::cube::setLinkWidth(float width) {
+ linkwidth = width;
+}