2015年3月4日 星期三

3/4


0行openlg

0行gult開啟


10行teapot

#include <GL/glut.h>
void display()
{
    glutSolidTeapot(0.3);
    glFlush();
}
int main(int argc, char *argv[])
{
    glutInit(&argc, argv);
    glutCreateWindow("GLUT Shapes");
    glutDisplayFunc(display);


    glutMainLoop();

}

沒有留言:

張貼留言