I’ve just made it work and wanted to show you guys the result. I made the animation using blender, and rendered the frames that I needed.
Just unzip to a folder and execute it!
Use the left and right arrowkey to move it.
The rest of the program is C++ and OpenGL.