2019年3月7日 星期四

鄭勛文 Week03

主題1.點,線,面,顏色

1.打開http://www.cmlab.csie.ntu.edu.tw/~jsyeh/3dcg10/

2.下載 data   win32   glut32.dll

3.把 windows   data   解壓縮

4. data,glut32.dll 放到 windows裡面

5.執行
主題2 親手寫程式
#include <GL/glut.h>
void display()
{
    glutSolidTeapot(0.3);
    glutSwapBuffers();
}
int main(int argc, char**argv)
{
    glutInit(&argc,argv);
    glutInitDisplayMode(GLUT_DOUBLE|GLUT_DEPTH);
    glutCreateWindow("06161215_Week03");
    glColor3f(0.1,0.5,0.1);
    glutDisplayFunc(display);
    glutMainLoop();
}

沒有留言:

張貼留言