2016年3月1日 星期二

WEEK02 陳漢庭

作業一


作業二

作業二:程式碼
#include <GL/glut.h>
void display()
{
glColor3f(1,0,0);
glClearColor(1,1,1,0);
glClear(GL_COLOR_BUFFER_BIT);
glutSolidTeapot (0.3);
glutSwapBuffers();
}
int main(int argc,char **argv)
{
gˋlutInit(&argc,argv);
glutInitDisplayMode(GLUT_DEPTH);
glutCreateWindow("hellow");
glutDisplayFunc(display);
glutMainLoop();
}

沒有留言:

張貼留言