+ 1

Can you draw stuff with C++

does anyone know how i would go about creating a Chess/Checkers board in C++, or just drawing/creating spirited in general?

9th Jul 2022, 6:43 PM
Cayden
2 Answers
+ 4
The language itself doesn't make any assumptions about the device it is going to run on, so you wouldn't find any of your "drawing" functionality in the standard library. but can use a graphics API of your system to render stuff on it. You can either use your platform's native graphics API ( like win32 api for windows system ) or a platform independent one ( like opengl ) In fact if you are dealing with relatively more complicated graphics, there are graphic libraries that wrap the redundant stuff in relatively easier to use functions for you to directly use in your program ( SDL and SFML are some examples of such libraries )
10th Jul 2022, 12:44 AM
Arsenic
Arsenic - avatar
+ 1
Surely you can. C++ is the main language used for game (engine) development. There are plenty of libraries you can use. If you want something simple, i would highly recommend taking a look at raylib
9th Jul 2022, 8:28 PM
Erarnitox
Erarnitox - avatar