This is the best solution I’ve found over the years:
http://www.david-amador.com/2009/10/xna-camera-2d-with-zoom-and-rotation/
It was made for XNA, it may not work directly, but here is a working example that I did:
This is the best solution I’ve found over the years:
http://www.david-amador.com/2009/10/xna-camera-2d-with-zoom-and-rotation/
It was made for XNA, it may not work directly, but here is a working example that I did: