C++ Graphics | SoloLearn: Learn to code for FREE!

+1

C++ Graphics

How can i draw things in c++(like the do in js) or how may i achieve graphics ?

c++

10/17/2019 3:48:03 PM

Love Love

4 Answers

New Answer

+2

have you check Google or YouTube on this and see what others use, if you do that you will find easy illustrations and tutorials to go about it, all it will take you is an hour or more of search and in the process you will also learn something new which is the skill of Googling

+7

Use the graphic.h library. You can't compile it in sololearn playground though

+2

C++ has no standard library for graphics. On modern computers the operating system prevents direct access to the graphics hardware so it is necessary to draw into some type of memory based object and request to operating system to display it. The Windows API uses a device context to do this. There are other ways to do this but they are all specific to the API or gui framework being used.

0

There are libraries like SFML(2D only), OpenGL(2D and 3D), DirectX(2D and 3D), etc. U can find tutorials on YouTube and Google on these