First OpenGL Project
first-opengl-prj is used as an example of simple OpenGL project, which uses vertex and fragment shader to draw triangles.
System environment
- Ubuntu 16.04 as VMWare guest OS
- built-in gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)
- cmake version 3.5.1
sudo apt-get install cmake
Required library:
- GLFW: version 3.1
sudo apt-get install libglfw3-dev
- glm: latest version on GitHub
- cd ~ - git clone https://github.com/g-truc/glm.git - cd /usr/local/include/ - sudo ln -s ~/glm/glm
Build:
./build.sh
Run:
./build/first-opengl