0

How to put colors and graphics in C++ programs?

15th Aug 2018, 10:42 AM
Najib Kigongo
Najib Kigongo - avatar
2 Answers
+ 2
The standard C++ library is only designed to cover an environment with files and stdin, stdout and stderr streams. If you want to do other things you will need other libraries. If you just want to enhance text you will need to set up curses on Linux and conio(?) on Windows. If you want to play with graphics you can use the standard graphics APIs (Direct2D, DirectX, OpenGL, Vulkan) or higher level libraries (SFML, SDL, OGRE3D). If you want to add windows, buttons etc you can use the APIs (Win32 API on Windows, X on Linux), or higher level libraries (GTK+/gtkmm, Qt).
15th Aug 2018, 11:28 AM
Vlad Serbu
Vlad Serbu - avatar
0
Thanks so much for your help
16th Aug 2018, 6:36 PM
Najib Kigongo
Najib Kigongo - avatar