2013年2月22日 星期五

第一週上課內容:)

哈瞜你好~加分加分^^

Teapot:
#include<GL/glut.h>
void display()
{
     glColor3f(1,0,1);
     glutSolidTeapot(0.3);
     glutSwapBuffers( );
}
int main()
{
     glutInitDisplayMode(GLUT_DOUBLE | GLUT_DEPTH);
     glutCreateWindow("00161045 My First GLUT 程式");

     glutDisplayFunc(display);
     glutMainLoop();
     return 0;
}

沒有留言:

張貼留言