You need a cross-platform graphics library. Look at OpenGL and appurtenances, wxWidgets, etc. As for the portability of the rest of your code, that's in your hands.