Why? Which ones?
OpenSSL by example for cryptography, but, you'll also need to have (probably) an entity and component system, a collision detection system, a system which manage animations, a particule system, a state management system, a command system, etc..., there exists many librairies which implements this already if you don't wanna implement all of this yourself.
But I don't know those librairies very well, I only know about some libraries like Irrlicht, Orgre, for the 3D, for the 2D I don't know them but it should exist.
But normally with a 3D lib you should be able to display 2D entities too. (It's just the perspective which is different)