V
V
Void592021-10-31 15:18:18
C++ / C#
Void59, 2021-10-31 15:18:18

Does c++ have native graphics capabilities?

Good afternoon! Is it possible to work in c++ without third party libraries? Not using OpenGL and similar tools. Anticipating questions like "yes, why do you need this, you don't need to reinvent the wheel," I'll say that I'm just curious.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
Wataru, 2021-10-31
@wataru

It is possible to draw something through system functions. If you want 3d graphics and use a video card, then, theoretically, you can write your own wrapper over the video driver from scratch. In practice, this is comparable in complexity to writing your own operating system.

A
antares4045, 2021-10-31
@antares4045

The question is in the required degree of independence: c++ cannot even display letters to the console on its own - it simply sends the bytes corresponding to the letters to the buffer, and the operating system reads them and draws squiggles in the console window. all kinds of DirectX with OpenGl are intermediaries between your program and the operating system, allowing you to more easily (and most likely more productively) explain to the operating system what you want to see. most of the graphic apis are written in syah, so yes: you can write your own opengl on the pros: just contact the api of your os directly. Also (here, perhaps I’m talking nonsense) it is possible to write a driver: a thing that converts operating system commands into commands for a specific device, that is, to take control of the monitor at the lowest level. It is also quite possible to write drivers on the pros.
I will not give links: I have never been drawn to low-level architectural solutions, and the university did not force me to.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question