2015年3月11日 星期三

WEEK03_CASH

利用大小和顏色的差別去作出重疊的各種茶壺



#include <GL/glut.h>

void display()
{
    glColor3f(1,1,0);
    glutSolidTeapot(0.5);

    glColor3f(1,0,0);
    glutSolidTeapot(0.4);

    glColor3f(1,0,1);
    glutSolidTeapot(0.3);
    glFlush();
    }

int main(int argc,char**argv)
{

    glutInit(&argc,argv);
    glutCreateWindow("02160120");
    glutDisplayFunc(display);
    glutMainLoop();
}

沒有留言:

張貼留言