2015年3月11日 星期三

Week03_02161114_許紘毓


的的#include <GL / glut.h>

無效顯示()
{
    glClearColor(1,1,0,0);          
    glClear(GL_COLOR_BUFFER_BIT);            
    glColor3f(1,1,1);
    glutSolidTeapot(0.5);
    glColor3f(0,0,1);
    glutSolidTeapot(0.4);
    glColor3f(1,0,0);
    glutSolidTeapot(0.2);
    glFlush();
}
INT主(INT ARGC,字符** argv的的)
{
    glutInit(ARGC,ARGV);
    glutCreateWindow(“02161114”);
    glutDisplayFunc(顯示);
    glutMainLoop();
}



    glutReshapeWindow(800600); 可調整視窗大小
    glutFullScreen(); 視窗延伸至全螢幕




沒有留言:

張貼留言