A toy example to explore both C++17 and OpenGL (4.1) on an M1 Pro Mac, for ARM specifically (no rosetta2 here).
First, please to make sure that:
- you have a clang version that supports C++17 (I used
Apple clang version 13.0.0 (clang-1300.0.29.30)for this exercise), - the following tools:
make,cmake,c++, - a macintosh computer (this exercise does not supports other platforms yet).
Now, in the root folder: cmake . && make && ./OpenGL-Engine.
Escto quit the program (or ctrl-c in your terminal),aanddto move the triangle.
TO DO: Cleanup the code
