This small project builds an analog clock featuring the following concepts:
- creating an application object
- creating a window
- unity build
- drawing with a constant frame rate
- creating a hardware renderer using the Metal framework
- loading images (PNG files)
- GPU shaders (Metal shading language)
- texture mapping
- 2D projection
- 2D rotation
- separation between platform layer and application
All you need to follow along or just build this project is:
- Visual Studio Code
- XCode command line tools (not XCode itself)
- cloc to measure lines of code
The following VS Code extensions are also partly necessary:
In order to build the project execute
sh build.sh
in the root directory of this project
In order to run execute
./clock