2016年3月1日 星期二

week02 李明融

1.從網址下載"data"及"win32"http://www.cmlab.csie.ntu.edu.tw/~jsyeh/3dcg10/

                 



2.  解壓後放同一個資料夾
點開:Shapes

                       

3.開啟新GLUT
並打入程式碼


#include <GL/glut.h> void display() { glutSolidTeapot(0.3); glColor3f(1,0,0); glutSwapBuffers(); } int main(int argc,char**argv) { glutInit(&argc,argv); glutInitDisplayMode(GLUT_DOUBLE | GLUT_DEPTH); glutCreateWindow("hello3D"); glutDisplayFunc(display); glutMainLoop(); }

並執行





加背景



沒有留言:

張貼留言