Sujet : Re: 'Graphics' of libwy
De : wyniijj5 (at) *nospam* gmail.com (wij)
Groupes : comp.lang.c++Date : 25. Dec 2024, 16:51:51
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <f7d56c1ffb5ba68e16107eaeb35f915beae6fa2a.camel@gmail.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
User-Agent : Evolution 3.54.2 (3.54.2-1.fc41)
On Mon, 2024-12-23 at 09:59 +0000,
Muttley@dastardlyhq.com wrote:
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?
What the graphics server is is not important, it is the client program.
I am more confident now that C++ graphics is easy, because I made a simple one that
just handles mouse event (server side 240 lines!), keyboard is just too many codes to do.