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;
}
沒有留言:
張貼留言