2021年2月24日 星期三

媽祖叫我學電腦圖學 Week 01

  • 開CodeBlocks, 點擊File-New-Project, "OpenGL"開啟OpenGL的專案設定介面
    • 命名專案:Week01
    • 專案檔案的路徑設定:C:\Users\Administrator\Desktop    (桌面路徑)
    • 下一步...下下下...
    • Build & Run 成功開啟OpenGL專案







  • WebGL Water



    •  

      • 開CodeBlocks, 點擊File-New-Project, "GLUT"開啟GLUT的專案設定介面
        • 命名專案:Week01GLUT
        • 專案檔案的路徑設定:C:\Users\Administrator\Desktop    (桌面路徑)
        • 安裝moodle上的freeglut(下載-將freeglut資料夾解壓縮移至桌面)
        • 並將freeglut資料夾-lib資料夾-的libfreeglut.a檔案改名為libglut32.a
        • 回到CodeBlocks 下一步設定glut的位置(選取桌面上的freeglut資料夾即可)
        • 下一步...下下下...
        • Build & Run 成功開啟GLUT專案







        • 完成

沒有留言:

張貼留言

距地表面160 Week11

 #include "glm.h" GLMmodel* pmodel = NULL; void drawmodel(void) {     if (!pmodel) { pmodel = glmReadOBJ("data/porsche.obj...