void
display()
{
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(0.0,0.0,1.0);
glLineWidth(2);
glBegin(GL_LINE_LOOP);
glVertex2f(3,
10);
glVertex2f(0,
20);
glVertex2f(-13,
-1);
glVertex2f(0,
35);
glVertex2f(9,
10);
glEnd();
glTranslated(-2.5,
-1.5, 0);
glRotated(70,0,0,1);
//BAGIAN ATAS
glBegin(GL_LINE_LOOP);
glVertex2f(3,
10);
glVertex2f(0,
20);
glVertex2f(-8,
-5);
glVertex2f(-13,
-2);
glVertex2f(0,
35);
glVertex2f(9,
10);
glEnd();
glBegin(GL_LINE_LOOP);
glVertex2f(3,
10);
glVertex2f(0,
20);
glVertex2f(-8,
-5);
glVertex2f(-13,
-2);
glVertex2f(0,
35);
glVertex2f(9,
10);
glEnd();
glTranslated(-2.5,
-1.5, 0);
glRotated(75,0,0,1);
//BAGIAN
ATAS
glBegin(GL_LINE_LOOP);
glVertex2f(3,
9.5);
glVertex2f(0,
20);
glVertex2f(-8,
-5);
glVertex2f(-13,
-1);
glVertex2f(0,
35);
glVertex2f(9,
9);
glEnd();
glBegin(GL_LINE_LOOP);
glVertex2f(3,
9.5);
glVertex2f(0,
20);
glVertex2f(-8,
-5);
glVertex2f(-13,
-1);
glVertex2f(0,
35);
glVertex2f(9,
9);
glEnd();
glTranslated(-2.5,
-1.5, 0);
glRotated(70,0,0,1);
//BAGIAN
ATAS
glBegin(GL_LINE_LOOP);
glVertex2f(3,
10);
glVertex2f(0,
20);
glVertex2f(-8,
-5);
glVertex2f(-13,
-2);
glVertex2f(0,
35);
glVertex2f(9,
10);
glEnd();
glBegin(GL_LINE_LOOP);
glVertex2f(3,
10);
glVertex2f(0,
20);
glVertex2f(-8,
-5);
glVertex2f(-13,
-2);
glVertex2f(0,
35);
glVertex2f(9,
10);
glEnd();
glTranslated(-2.5,
-1.5, 0);
glRotated(75,0,0,1);
//BAGIAN
ATAS
glBegin(GL_LINE_LOOP);
glVertex2f(3,
9.5);
glVertex2f(0,
20);
glVertex2f(-8,
-5);
glVertex2f(-13,
-1);
glVertex2f(0,
35);
glVertex2f(9,
9);
glEnd();
bgmn download sintax nya?
ReplyDeleteya tinggal copy saja kok :-D
Delete