The tool that I used to perform this code is XCode.
- Install OpenGL. (http://www.prinmath.com/csci5229/misc/install.html)
- Install GLFW. On Mac, run the 'brew install glfw3' in the terminal.
- Install GLEW. On Mac, run the 'brew install glew' in the terminal.
- Install Assimp. On Mac, run the 'brew install assimp' in the terminal.
- Add header search paths. On Mac, the configuration is in project/build settings/search paths
- Link Libraries libglfw, libglew, libassimp, and OpenGL lib.
- Add resources folder to the COSC3000 folder
- Clone https://bitbucket.org/SpartanJ/soil2/src/default/ and extracts the folder
- Add SOIL2 folder to the COSC3000 folder
- Run main.cpp
Codes are adapted from:
- Learn OpenGL. https://learnopengl.com/
- Sonar System Youtube Videos. Retrieved from https://www.youtube.com/watch?v=Tz0dq2krCW8&list=PLRtjMdoYXLf6zUMDJVRZYV-6g6n62vet8