A skeleton C++20 OpenGL 4.1 app that uses glfw, glad, and glm libraries and builds with CMake to enable rapid cross-platform hacking with OpenGL.
All libraries are retrieved and built using CMake's FetchContent capability to ensure portability.
- C++20
- OpenGL 4.1
- CMake 3.16
- Make (macOS/Linux)
- Visual Studio 2019 (Windows)
git clone https://github.com/andystanton/glfw-skeleton.git
cd glfw-skeleton
make run
- Clone the repository.
- Open the folder in Visual Studio and switch to CMake Targets View as described in CMake projects in Visual Studio.
- Right click on the
glfw-skeleton
target and choose Debug.
Tested on macOS 11.6, Windows 10, & Ubuntu 20.04.
macOS | Windows | Linux |
---|---|---|