I would suggest OpenGL as a solid starting point. It is a cross-platform graphics API with broad support and plenty of learning material, which makes it a practical foundation for 2D rendering.
If you would rather not write a renderer yourself, purpose-built 2D engines and frameworks handle sprites, input and physics out of the box and will get you to a playable prototype much faster.