Sujet : Re: 'Graphics' of libwy
De : Muttley (at) *nospam* DastardlyHQ.org
Groupes : comp.lang.c++Date : 17. Dec 2024, 17:02:16
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vjs7a7$1qa1n$1@dont-email.me>
References : 1 2 3
On Tue, 17 Dec 2024 16:38:49 +0200
Paavo Helde <
eesnimi@osa.pri.ee> wibbled:
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.
Does wx do 3D stuff? If not you'd need yet another library to do that too.
Personally I'd go with Qt. Its mature and cross platform and does what 99%
of most people need.