step 1 : 從網址下載: sorce , date , win32 ,glut32.dll ( jsyeh.org/3dcg10 )
step 2: 將檔案解壓縮,並將檔案存為此樣子

step3 : 點擊 shape.exe

作業 02
製作GLUT專案
程式碼
#include <GL/glut.h>
void display()
{
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(0.5,0,0.5);
glClearColor(1,0.5,0,0.5);
glutSolidTeapot(0.3);
glutSwapBuffers();
}
int main(int argc,char **argv)
{
glutInit(&argc,argv);
glutInitDisplayMode(GLUT_DEPTH);
glutCreateWindow("hello");
glutDisplayFunc(display);
glutMainLoop();
}

作者已經移除這則留言。
回覆刪除