OpenGL:0行
GLUT:0行
GLUT:10行
#include <GL/glut.h> //呼叫GLUT外掛
void display(){
glutSolidTeapot(0.3); //畫出茶壺
glFlush(); //
}
int main(int argc, char *argv[]){
glutInit(&argc, argv); //初始化GULT
glutCreateWindow("GLUT Shapes"); //建立視窗
glutDisplayFunc(display);
glutMainLoop(); //持續顯示
}
沒有留言:
張貼留言