2018年4月9日 星期一

Week 07 ------ 快考試了

1.3D Exploration可用data.zip解壓縮後的data資料夾開啟

2.下載〈jsyeh.org/3dcg10〉source.zip{glm.h、glm.c、transformation.c}改成{glm.h、glm.cpp、transformation.cpp},複製進week07_glm資料夾〈開啟codeblocks的glut專案〉,Setting-Compiler勾勾去掉


3.程式碼
main.cpp
#include "glm.h"///外掛---1
GLMmodel * pmodel=NULL;///指標---2
void display()///畫模型---3
{
    glClear();
    ...
    glutSwapBuffers();
}

沒有留言:

張貼留言