作業1
作業2
作業3
作業4
#include <GL/glut.h>
void testl()
{
glutSolidTeapot(0.3);
glutSwapBuffers();
}
int main(int argc,char**argv)
{
glutInit(&argc,argv);
glutInitDisplayMode(GLUT_DOUBLE | GLUT_DEPTH);
glutCreateWindow("Hello 3D");
glutDisplayFunc(testl);
glutMainLoop();
}




沒有留言:
張貼留言