1. jsyeh.org/3dcg10 下載
data 、win32、 glut32.dll這三個檔案
data 、win32、 glut32.dll這三個檔案
將windows解壓縮 然後將其他兩個檔案丟進去,在執行執行shapes.exe
#include <GL/glut.h>
void display()
{
glColor3f(1,1,0);
glutSolidTeapot(0.4);
glFlush();
}
int main (int arge, char **argv)
{
glutInit(&arge,argv);
glutCreateWindow("01160536");
glutDisplayFunc(display);
glutMainLoop();
}
沒有留言:
張貼留言