I have Recently viewed Donut Animation in C! Did Someone can do it using C++ Math.
Here was a Detailed Tutorial:- https://www.a1k0n.net/2011/07/20/donut-math.html