Sujet : Re: 'Graphics' of libwy
De : eesnimi (at) *nospam* osa.pri.ee (Paavo Helde)
Groupes : comp.lang.c++Date : 17. Dec 2024, 15:38:49
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vjs2do$1p3ce$1@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
On 17.12.2024 02:41, Lynn McGuire wrote:
On 12/15/2024 4:04 AM, wij wrote:
I had headache whenevr I think about graphics in C++. Why C++ does not provide
a graphics library (lots complaint about this), not even a simplest one for
demonstrating its 'power' of C++ itself? Then, I suddenly realized that the
minimal answer is already there because the resolution of modern text screen
(emulator) is barely enough (width can be >320).
...
I totally agree that C++ should have a graphics library and a user interface library both.
Have you looked at
https://wxwidgets.org/
"wxWidgets is a C++ library that lets developers create applications for Windows, macOS, Linux and other platforms with a single code base. It has popular language bindings for Python, Ruby, Lua, Perl and several other languages, and unlike other cross-platform toolkits, wxWidgets gives applications a truly native look and feel because it uses the platform's native API rather than emulating the GUI. It's also extensive, free, open-source and mature."
wxWidgets does work and is better than MFC, but not extremely so. Also, it is not exactly light-weight, a git checkout is 803 MB. Good luck for the standards committee to standardize anything like that.
Also, wxWidgets would be only part of the solution, it would still need a graphics back-end for actually drawing anything, plus some fonts for rendering texts. On some platforms the graphics back-end is built into the OS, on others it is not.
BTW, what has happened with Mr Flibble and his neoGFX library?