How can I play animations strictly from C++?

I’d also like to know how to set and play animations from C++