glEnable(GL_COLOR_MATERIAL); //Enable color
glClearColor(0.7f, 0.9f, 1.0f, 1.0f); // 배경색을 하늘색으로 변경
glColor3f(0.5f, 0.0f, 0.8f); //vertex에 색을 입힌다.
'작업 > opengl' 카테고리의 다른 글
| Lesson 5: Textures (0) | 2012.07.25 |
|---|---|
| Lesson 4: Lighting (0) | 2012.07.05 |
| Lesson 2: Transformations and Timers (0) | 2012.06.29 |
| Lesson 1: Basic Shapes (0) | 2012.06.22 |
| 설치환경셋업 (0) | 2012.06.22 |
main.cpp