목차
1. C++ Source
2. 출력 화면
2. 출력 화면
본문내용
0);
glVertex2f(238.0, 76.0);
glVertex2f(255.0, 79.0);
glVertex2f(269.0, 82.0);
glVertex2f(288.0, 81.0);
glVertex2f(300.0, 86.0);
glVertex2f(305.0, 95.0);
glVertex2f(300.0, 107.0);
glVertex2f(291.0, 116.0);
glVertex2f(299.0, 132.0);
glVertex2f(303.0, 143.0);
glVertex2f(306.0, 159.0);
glVertex2f(306.0, 175.0);
glVertex2f(313.0, 192.0);
glVertex2f(313.0, 204.0);
glVertex2f(303.0, 213.0);
glVertex2f(279.0, 228.0);
glVertex2f(251.0, 220.0);
glVertex2f(240.0, 215.0);
glVertex2f(213.0, 211.0);
glVertex2f(193.0, 211.0);
glVertex2f(180.0, 209.0);
glVertex2f(175.0, 207.0);
glEnd();
glBegin(GL_POLYGON); // "ㅁ" 아웃라인처리(흰색 폴리곤)
glColor3f(1.0, 1.0, 1.0);
glVertex2f(180.0, 185.0);
glVertex2f(187.0, 171.0);
glVertex2f(185.0, 149.0);
glVertex2f(187.0, 123.0);
glVertex2f(190.0, 106.0);
glVertex2f(210.0, 109.0);
glVertex2f(201.0, 177.0);
glEnd();
glBegin(GL_POLYGON); // "ㅁ" 아웃라인처리(흰색 폴리곤)
glColor3f(1.0, 1.0, 1.0);
glVertex2f(260.0, 187.0);
glVertex2f(238.0, 184.0);
glVertex2f(219.0, 179.0);
glVertex2f(201.0, 177.0);
glVertex2f(196.0, 177.0);
glVertex2f(204.0, 108.0);
glVertex2f(267.0, 117.0);
glVertex2f(265.0, 144.0);
glVertex2f(262.0, 169.0);
glEnd();
glFlush();
}
void main(int argc, char** argv)
{
void myinit(), display();
glutInit(&argc,argv); //초기화
glutInitWindowSize(600,610); //윈도우 크기 설정
glutInitWindowPosition(0,0); // 윈도우 위치 설정
glutCreateWindow("GL폴리곤, LastName(김) Display"); // 윈도우 타이틀 설정
glutDisplayFunc(display); // 출력 함수 호출
myinit(); // 출력속성 설정
glutMainLoop(); //Event Loop
}
2. 출력 화면
glVertex2f(238.0, 76.0);
glVertex2f(255.0, 79.0);
glVertex2f(269.0, 82.0);
glVertex2f(288.0, 81.0);
glVertex2f(300.0, 86.0);
glVertex2f(305.0, 95.0);
glVertex2f(300.0, 107.0);
glVertex2f(291.0, 116.0);
glVertex2f(299.0, 132.0);
glVertex2f(303.0, 143.0);
glVertex2f(306.0, 159.0);
glVertex2f(306.0, 175.0);
glVertex2f(313.0, 192.0);
glVertex2f(313.0, 204.0);
glVertex2f(303.0, 213.0);
glVertex2f(279.0, 228.0);
glVertex2f(251.0, 220.0);
glVertex2f(240.0, 215.0);
glVertex2f(213.0, 211.0);
glVertex2f(193.0, 211.0);
glVertex2f(180.0, 209.0);
glVertex2f(175.0, 207.0);
glEnd();
glBegin(GL_POLYGON); // "ㅁ" 아웃라인처리(흰색 폴리곤)
glColor3f(1.0, 1.0, 1.0);
glVertex2f(180.0, 185.0);
glVertex2f(187.0, 171.0);
glVertex2f(185.0, 149.0);
glVertex2f(187.0, 123.0);
glVertex2f(190.0, 106.0);
glVertex2f(210.0, 109.0);
glVertex2f(201.0, 177.0);
glEnd();
glBegin(GL_POLYGON); // "ㅁ" 아웃라인처리(흰색 폴리곤)
glColor3f(1.0, 1.0, 1.0);
glVertex2f(260.0, 187.0);
glVertex2f(238.0, 184.0);
glVertex2f(219.0, 179.0);
glVertex2f(201.0, 177.0);
glVertex2f(196.0, 177.0);
glVertex2f(204.0, 108.0);
glVertex2f(267.0, 117.0);
glVertex2f(265.0, 144.0);
glVertex2f(262.0, 169.0);
glEnd();
glFlush();
}
void main(int argc, char** argv)
{
void myinit(), display();
glutInit(&argc,argv); //초기화
glutInitWindowSize(600,610); //윈도우 크기 설정
glutInitWindowPosition(0,0); // 윈도우 위치 설정
glutCreateWindow("GL폴리곤, LastName(김) Display"); // 윈도우 타이틀 설정
glutDisplayFunc(display); // 출력 함수 호출
myinit(); // 출력속성 설정
glutMainLoop(); //Event Loop
}
2. 출력 화면
소개글