Sujet : Re: 'Graphics' of libwy
De : Muttley (at) *nospam* dastardlyhq.com
Groupes : comp.lang.c++Date : 23. Dec 2024, 10:59:22
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vkbc9q$158la$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
On Mon, 23 Dec 2024 14:32:38 +0800
wij <
wyniijj5@gmail.com> gabbled:
On Sun, 2024-12-22 at 15:26 -0800, Chris M. Thomasson wrote:
On 12/22/2024 10:50 AM, wij wrote:
[...]
I just wrote two program (face_svr.cpp, face_cli.cpp) to test what I th=
ought.
It looks plausible using C++ to write graphic programs without using an=
y
graphic library. Dream come true! 'C++ graphics' is possible and easy.
=20
Well, sure. PPM's are rather easy to create. :^)
=20
Creating OBJ files in C/C++ is rather easy as well.
>
For simple GUI, e.g. drawing graph of math. functions, statistics, Mandelbr=
ot
set,...) is no problem.
>
int main() {
Array2D<Pixel> img;
draw_mand(img);
put_image("graphics_server", img);
zoom_event_handler();
}
>
The solution of C++ graphics (or GUI) is no graphics in C++.
And that'll work with X windows will it? Where you are setting the display
IP and screen number or does it just always use the default?