Deutsch   English   Français   Italiano  
<f7d56c1ffb5ba68e16107eaeb35f915beae6fa2a.camel@gmail.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: news.eternal-september.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wij <wyniijj5@gmail.com>
Newsgroups: comp.lang.c++
Subject: Re: 'Graphics' of libwy
Date: Wed, 25 Dec 2024 23:51:51 +0800
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <f7d56c1ffb5ba68e16107eaeb35f915beae6fa2a.camel@gmail.com>
References: <4ffeda4ce7116f70754bcfcaee87cb729081fac3.camel@gmail.com>
		 <vjqhau$1ceif$1@dont-email.me> <vjs2do$1p3ce$1@dont-email.me>
		 <vjs7a7$1qa1n$1@dont-email.me> <vjs8uq$1qgh4$1@dont-email.me>
		 <vjsaa3$1qrhs$1@dont-email.me> <vjtvvk$2787g$1@dont-email.me>
		 <vju3t1$27s6m$1@dont-email.me> <87cyho7l0y.fsf@nosuchdomain.example.com>
		 <949627852d304fe2c28e4b02e1c2c8f1b92dcf02.camel@gmail.com>
		 <875xngxv69.fsf@nosuchdomain.example.com>
		 <46376a6ea82da504381a6431a4f21014d9a30a3f.camel@gmail.com>
		 <871py4xq9y.fsf@nosuchdomain.example.com>
		 <s_idnQttB9Q9Jfn6nZ2dnZfqnPednZ2d@giganews.com>
		 <87wmfvw4aq.fsf@nosuchdomain.example.com>
		 <87seqjw1ee.fsf@nosuchdomain.example.com>
		 <6523746156b3a0a3905a94f90ddb06f4ca6d7949.camel@gmail.com>
		 <f16848a99a961b30d5beb5213048296c3168a88e.camel@gmail.com>
		 <vka76m$rbmf$1@dont-email.me>
	 <5587b27bb697a686c9c916ae9739379b2f4342a9.camel@gmail.com>
	 <vkbc9q$158la$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Date: Wed, 25 Dec 2024 16:51:53 +0100 (CET)
Injection-Info: dont-email.me; posting-host="b4d3d28b3a5c6d068683d5db8507690b";
	logging-data="2586774"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+54Go8wg04pt8/SqMWeqok"
User-Agent: Evolution 3.54.2 (3.54.2-1.fc41)
Cancel-Lock: sha1:luV4bFiRuvUHMSRxs6ewtfd1xKA=
In-Reply-To: <vkbc9q$158la$1@dont-email.me>

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=3D
> > ought.
> > > > It looks plausible using C++ to write graphic programs without usin=
g an=3D
> > y
> > > > graphic library. Dream come true! 'C++ graphics' is possible and ea=
sy.
> > > =3D20
> > > Well, sure. PPM's are rather easy to create. :^)
> > > =3D20
> > > Creating OBJ files in C/C++ is rather easy as well.
> >=20
> > For simple GUI, e.g. drawing graph of math. functions, statistics, Mand=
elbr=3D
> > ot
> > set,...) is no problem.
> >=20
> > int main() {
> > Array2D<Pixel> img;
> > draw_mand(img);
> > put_image("graphics_server", img);
> > zoom_event_handler();
> > }
> >=20
> > The solution of C++ graphics (or GUI) is no graphics in C++.
>=20
> And that'll work with X windows will it? Where you are setting the displa=
y
> IP and screen number or does it just always use the default?
>=20

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 man=
y codes to do.