2016年2月28日 星期日

BOZC Week01 hw

課堂作業1:
步驟1:
到FB " 2016電腦圖學 " 社團中

步驟2:
進入網址 http://madebyevan.com/webgl-water/

步驟3:
截圖上傳

課堂作業2:
步驟1:
打開Code::Blocks
步驟2:
照課堂上的做
開啟OpenGL專案
build and run





課堂作業3:
下載freeglut并解壓
複製路徑
接著按照上課步驟





回家作業
編輯自己的glut碼

程式碼:


#include <GL/glut.h>{

    glutSolidTeapot(0.3);

    glutSwapBuffers();

}

int main(int argc, char**argv)

{

    glutInit(&argc,argv);


    glutInitDisplayMode(GLUT_DOUBLE | GLUT_DEPTH);

    glutCreateWindow("hello 3D");

    glutDisplayFunc(display);

    glutMainLoop();
}    void display()

然後 build and run






沒有留言:

張貼留言