From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: BartC Newsgroups: comp.lang.ada Subject: Re: Best way to put an array-based pixmap on a screen? Date: Sun, 26 Mar 2017 22:00:10 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 26 Mar 2017 20:57:14 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="a39dbe024363bdec30d7f71240379e8c"; logging-data="18656"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+uNC7nUucWwaa/31IsHn70" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 In-Reply-To: Cancel-Lock: sha1:+MajQLKWK7pcgbcxT2B8fxrKDug= Xref: news.eternal-september.org comp.lang.ada:46471 Date: 2017-03-26T22:00:10+01:00 List-Id: On 26/03/2017 09:25, Dmitry A. Kazakov wrote: > On 2017-03-26 03:01, LaeMing Ai wrote: >> I am hoping to learn some Ada with an explicit interest in simple >> software 3D rendering (ie: writing the render code in Ada, NOT calling >> external libraries such as OpenGL). > Cairo rendering is more or less simple: > > https://www.cairographics.org/tutorial Ah! Perhaps a simpler way to get into Cairo, since I got bogged down last time (trying to use it via C). I click Download on your link, scroll to Windows, and it says I need to download GTK+ as it will have Cairo. OK, GTK download page, Windows, it says I will need GLib, cairo, Pango, ATK, gdk-pixbuf and GTK+ developer packages.... Then it says it's best to install MSYS2 to download binaries (we are still trying to download a simple rendering package, right?). This is obviously going to lead nowhere. Back a few pages, it suggests Glade, but, looking at it, it appears to have nothing to do with GTK. Or with Cairo (remember that?). A very familiar pattern. I would suggest to the OP, especially if having similar problems trying to install purportedly 'simple' packages, to just create an N by 2N array of pixels, and draw directly into it. But to view the result, it will necessary to write it to a file in some recognised format (PPM is perhaps the simplest), and use some external utility to display. Perhaps the OS will already be able to show it. -- Bartc