- // kormos
- glPushMatrix();
- glScalef(1.1, 3, 1.1);
- glTranslatef(0, 0.5, 0);
- glutSolidCube(1.0);
- glPopMatrix();
-
- glShadeModel(GL_FLAT);
-
- // base
- glPushMatrix();
- glRotatef(90, 1, 0, 0);
- glTranslatef(0, -0.15, 0);
- glutSolidCylinder(2, 0.3, 16, 1);
- glPopMatrix();
-
- // middle cylinder
- glPushMatrix();
- glTranslatef(0, 3, 0);
- glRotatef(22.5, 0, 1, 0);
- glRotatef(-90, 1, 0, 0);
- glutSolidCylinder(0.5, 1.0, 8, 1);
- glPopMatrix();
-
- // trim middle cylinder (mporntoura)
- glPushMatrix();
- glTranslatef(0, 3.9, 0);
- glRotatef(22.5, 0, 1, 0);
- glRotatef(-90, 1, 0, 0);
- glutSolidCylinder(0.55, 0.02, 8, 1);
- glPopMatrix();