glRotatef(az, 0, 1, 0);
glRotatef(alt, 1, 0, 0);
glColor4f(wireColor[0], wireColor[1], wireColor[2], wireColor[3]);
+ glLineWidth(framewidth);
glutWireCube(2);
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);
wireColor[2] = b;
wireColor[3] = a;
}
+
+void culooks::cube::setFrameWidth(float width) {
+ framewidth = width;
+}
+
+void culooks::cube::setLinkWidth(float width) {
+ linkwidth = width;
+}