一、WebGL---------打開http://madebyevan.com/webgl-water/
![]() |
| WebGL實際模擬 |
二、OpenGL
使用方法:
1.open codeblock -> New project
2.選擇OpenGL
3.next
4.填入文件名稱和路徑
5.next
6.左側選擇如圖所示
7.build and run
8.最後使用情況展示
三、GLUT
使用方法:
1.Moddle上 download freeglut-MinGW-3.0.0-1.mp.zip
3.打開freeglut文件夾選擇lib文件夾
4.選擇圖中所示文件複製并改名為libglut32.a
5.如OpenGL一樣打開codeblock且選擇GLUT
6.與OpenGL一樣一樣next
7.與OpenGL一樣一樣輸入文件名稱和存儲路徑
8.選擇剛才freeglut文件的保存路徑
9.與OpenGL一樣一樣next
10.與OpenGL一樣左側選擇main.cpp文檔並且build and run
11.最後使用情況展示
Ps:codeblock無法Compiler(build and run)解決辦法
1.打開codeblock工具欄選擇settings->Compiler
2.選擇Toolchain executables -> Auto-detect點一下就會自動搜尋Compiler文件 -> OK























沒有留言:
張貼留言