Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- glScalef(10, 10, 10);
- glBegin(GL_TRIANGLE_FAN);
- // 1 sciana
- glColor3f(1, 1, 1);
- glVertex3f(0, 0, 0);
- glColor3f(0, 1, 1);
- glVertex3f(-1, 1, 0);
- glColor3f(0, 1, 0);
- glVertex3f(-0.5, 1, 0.87);
- // 2 sciana
- glVertex3f(-0.5, 1, 0.87);
- glColor3f(1, 1, 0);
- glVertex3f(0.5, 1, 0.87);
- // 3 sciana
- glVertex3f(0.5, 1, 0.87);
- glColor3f(1, 0, 0);
- glVertex3f(1, 1, 0);
- // 4 sciana
- glVertex3f(1, 1, 0);
- glColor3f(1, 0, 1);
- glVertex3f(0.5, 1, -0.87);
- // 5 sciana
- glVertex3f(0.5, 1, -0.87);
- glColor3f(0, 0, 1);
- glVertex3f(-0.5, 1, -0.87);
- // 6sciana
- glVertex3f(-0.5, 1, -0.87);
- glColor3f(0, 1, 1);
- glVertex3f(-1, 1, 0);
- //gora
- glColor3f(0, 1, 0);
- glVertex3f(-0.5, 1, 0.87);
- glColor3f(0, 0, 0);
- glVertex3f(0, 1, 0);
- //
- glColor3f(1, 1, 0);
- glVertex3f(0.5, 1, 0.87);
- glColor3f(0, 0, 0);
- glVertex3f(0, 1, 0);
- //
- glVertex3f(0, 1, 0);
- glColor3f(1, 0, 0);
- glVertex3f(1, 1, 0);
- //
- glColor3f(0, 0, 0);
- glVertex3f(0, 1, 0);
- glColor3f(1, 0, 1);
- glVertex3f(0.5, 1, -0.87);
- //
- glColor3f(0, 0, 0);
- glVertex3f(0, 1, 0);
- glColor3f(0, 0, 1);
- glVertex3f(-0.5, 1, -0.87);
- //
- glColor3f(0, 0, 0);
- glVertex3f(0, 1, 0);
- glColor3f(0, 1, 1);
- glVertex3f(-1, 1, 0);
- glEnd();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement