{
glClear(GL_COLOR_BUFFER_BIT);
glutSolidTeapot(0.3);
glutSwapBuffers();
}
int main(int argc, char **argv)
{
glutInit(&argc,argv);
glutInitDisplayMode(GLUT_DOUBLE);
glutCreateWindow("week 02 hello world");
glutDisplayFunc(display); 顯示函式display()
glutMainLoop();
}
增加了
glColor3f(1,0,0); /////色彩
新增
glClearColor(68/255.0,178/255.0,238/255.0,1);


沒有留言:
張貼留言