Sujet : Re: 'Graphics' of libwy
De : wyniijj5 (at) *nospam* gmail.com (wij)
Groupes : comp.lang.c++Date : 23. Dec 2024, 07:32:38
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <5587b27bb697a686c9c916ae9739379b2f4342a9.camel@gmail.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
User-Agent : Evolution 3.54.2 (3.54.2-1.fc41)
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 thought.
It looks plausible using C++ to write graphic programs without using any
graphic library. Dream come true! 'C++ graphics' is possible and easy.
Well, sure. PPM's are rather easy to create. :^)
Creating OBJ files in C/C++ is rather easy as well.
For simple GUI, e.g. drawing graph of math. functions, statistics, Mandelbrot
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++.