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 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.99.170.73 with SMTP id x9mr5491194pgo.1.1490490120129; Sat, 25 Mar 2017 18:02:00 -0700 (PDT) X-Received: by 10.157.32.10 with SMTP id n10mr1414657ota.10.1490490120077; Sat, 25 Mar 2017 18:02:00 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!w124no1924126itb.0!news-out.google.com!i72ni2743itb.0!nntp.google.com!w124no6140826itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 25 Mar 2017 18:01:59 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=220.233.175.88; posting-account=4ayn4woAAADnVypQTO_KOekJA3eJDijd NNTP-Posting-Host: 220.233.175.88 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Best way to put an array-based pixmap on a screen? From: LaeMing Ai Injection-Date: Sun, 26 Mar 2017 01:02:00 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:46456 Date: 2017-03-25T18:01:59-07:00 List-Id: 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 libr= aries such as OpenGL). I want to set up a shim between my Ada environment a= nd my Linux Desktop to facilitate monitoring my output, without having to m= ess about with the daunting (I quickly found) task of interfacing to SDL or= GTK+! All I really want to see from my code's perspective is a 2D array of 32-bit= pixel values that I can manipulate from my developing Ada code, and not ha= ve to worry about the intricacies of window managers. Is it possible to get= help constructing a project template providing the following: - Function to create a non-resizable X11 window of dimensions N high by 2N = wide (N is nominally valued at 512, but could be any value of 2^x above 256= ). - Callback for if the above window's close box is activated, to terminate t= he program. - Function to copy an array of 2N by N of 32 bit values (8:Red 8:Green 8:Bl= ue 8:ignored) to the above window. At this stage I am not concerned with input to the window (other than the c= lose box terminating the application, would be nice). Packing it all into a single source file that I can put to the side and lar= gely ignore would be nice too! I particularly don't want event loops, or anything else dragged in from out= side the Ada environment if at all possible - the point of using Ada is to = learn to do all that /in/ Ada! :-) I have played around with some AdaGTK examples but keep getting bogged down= :-( .=20 Thanks.