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 X-Received: by 2002:a24:1f81:: with SMTP id d123-v6mr140163itd.2.1540488785458; Thu, 25 Oct 2018 10:33:05 -0700 (PDT) X-Received: by 2002:a9d:5cc6:: with SMTP id r6mr3248oti.4.1540488785178; Thu, 25 Oct 2018 10:33:05 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.166.216.MISMATCH!75-v6no92361itm.0!news-out.google.com!l70-v6ni96itb.0!nntp.google.com!z5-v6no92053ite.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 25 Oct 2018 10:33:04 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=208.114.128.90; posting-account=MRPdDAoAAADUJmZVjnYaoafXFMadSeY1 NNTP-Posting-Host: 208.114.128.90 References: <5fb88cf6-47da-4c28-a660-9ddf06522b12@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5b897611-5e95-4bc8-b5b9-a8df97299cd6@googlegroups.com> Subject: Re: Ada interacting with Windows 8.1+ GUI From: Olivier Henley Injection-Date: Thu, 25 Oct 2018 17:33:05 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:54708 Date: 2018-10-25T10:33:04-07:00 List-Id: On Thursday, October 25, 2018 at 1:19:29 PM UTC-4, Olivier Henley wrote: > Hi, > > I am writing an Ada equivalent of GLFW3 and the MS window handling + GL context is actually working. > > The code is almost the bear minimum to 'natively' handle a MS window (Ada wrapping Microsoft C core functions). I recommend you check my implementation as a starter. > > The lib: > https://github.com/ohenley/aglw > > A working demo, client using the lib: > https://github.com/ohenley/aglw-demos > > olivier The windows type definition comes from Adacore win32ada. In the example dir they have working sample that play with native windows, drawing etc. Note: Anyhow, I plan on isolating only the type definitions needed to handle the window stuff and drop the rest. For me, to bring the whole win32 interface is overkill. But the needed stuff is all used aglw/main/src/win32/aglw-windows.adb Another 'slim' reference is the Lumen project: https://github.com/karakalo/lumen