This is just a collection of useful information and experiences with Learning OpenGL from: https://learnopengl.com/
$ git clone git@github.com:glfw/glfw.git
$ cd glfw
$ mkdir build && cd build
$ cmake -GNinja -DCMAKE_OSX_ARCHITECTURES=arm64
$ ninja
$ ninja install
- Go to: https://glad.dav1d.de/
- Select: C++, OpenGL, gl v3.3, tick "Generate Loader"
- Click generate
- Download glad.zip
$ git clone git@github.com:g-truc/glm.git
Header only, so no compilation required, just need to include through CMake:
set(glm_DIR <path to glm root>/cmake/glm) # if necessary
find_package(glm REQUIRED)
target_link_libraries(<your executable> glm::glm)
$ wget https://raw.githubusercontent.com/nothings/stb/master/stb_image.h
Location: https://github.com/ocornut/imgui