2016年2月22日 星期一

2016/2/22 week01



hw01
1. 登入FB加入社團填資料
2. google  webgl sample或是webgl water體驗這堂課所學的東西
3. 截圖傳Blog















hw02

1. 打開codeblocks
2. file>>New>>Project>>OpenGL
3. 案F9














hw03

1. 打開codeblocks
2. file>>New>>Project>>GLUT
3. 在Please select GULT's location貼上GULT位置
4. F9



hw04
#include <GL/glut.h>
void display()
{
    glutSolidTeapot(1);
    glutSwapBuffers();
}
int main(int argc,char **argv)
{
    glutInit(&argc,argv);
    glutInitDisplayMode(GLUT_DOUBLE | GLUT_DEPTH);///設定視窗大小

    glutCreateWindow("Hello OpenGL");
    glutDisplayFunc(display);

    glutMainLoop();
}

沒有留言:

張貼留言