簡介
The OpenGL Extension Wrangler Library is a cross-platform C/C++ library that helps in querying and loading OpenGL extensions. GLEW provides efficient run-time mechanisms for determining which OpenGL extensions are supported on the target platform.
編譯
下載下傳代碼 https://github.com/nigels-com/glew
git clone https://github.com/nigels-com/glew.git glew
直接 make 會出現下面的錯誤:
make: *** No rule to make target `src/glew.c', needed by `tmp/darwin/default/shared/glew.o'. Stop.
需要先到auto目錄下面執行make,會自動到git上面下載下傳opengl、egl幾個相關庫,在執行make就可以,可以按下面指令進行編譯;
make extensions
make
linux和mac osx的編譯方式都一樣