Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- glEnable(GL_DEPTH_TEST);
- glEnable(GL_ALPHA_TEST); //разрешаем обрабатывать четвертый компонент цвета
- glEnable(GL_BLEND); // разрешаем наложение цветов
- glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
- glColor3d(0.6, 0.4, 0.2);
- glRotated(90.,0.,1.,0);
- glPushMatrix();
- auxSolidCylinder(1., 23.);
- //glTranslated(0.,9.,0.);
- glPopMatrix();
- glPushMatrix();
- glRotated(-90., 1., 0., 0.);
- glTranslated(0., 0., -1.);
- glColor4d(0.,0.8,0.,1);
- auxSolidCone(4.,6.99);
- glColor4d(0., 0.6, 0., 1.);
- auxWireCone(4.,7);
- glTranslated(0., 0., -5.);
- glColor4d(0., 0.8, 0., 1);
- auxSolidCone(5., 6.99);
- glColor3d(0., 0.6, 0.);
- auxWireCone(5., 7);
- glTranslated(0., 0., -5.);
- glColor4d(0., 0.8, 0., 1);
- auxSolidCone(6., 6.99);
- glColor3d(0., 0.6, 0.);
- auxWireCone(6., 7);
- glTranslated(0., 0., -5.);
- glColor4d(0., 0.8, 0., 1);
- auxSolidCone(7., 6.99);
- glColor4d(0., 0.6, 0.,1.);
- auxWireCone(7., 7);
- glPopMatrix();
- glDisable(GL_DEPTH_TEST);
- glPushMatrix();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement