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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: Luke A. Guest Newsgroups: comp.lang.ada Subject: Re: Status of SDLAda Date: Mon, 12 Sep 2016 23:57:23 +0100 Organization: Aioe.org NNTP Server Message-ID: <2017734217.495413589.461127.laguest-archeia.com@nntp.aioe.org> References: NNTP-Posting-Host: J7MbjkvV0a1cym7LWSpfrQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: NewsTap/5.1.8 (iPhone/iPod Touch) Cancel-Lock: sha1:veTCrXEPd+wUkx+i1uJF9/TQrtQ= X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:31761 Date: 2016-09-12T23:57:23+01:00 List-Id: Aurele wrote: >> There is an unfinished binding to the SDL2 library called SDLAda > > This looks like a "thick" binding to the SDL library: > > https://www.libsdl.org/ > > Would having a "thin" binding to the SDL library not have been a better approach? No. If you just want to write C in Ada use a thin binding. And why are the API names all different (what happened to SDL_ from the name). Why the hell would you use C's naming convention in a language that supports overloading, the reason why C libs add a namespace in function names is because C can't do overloading. The name's aren't different! The names may be reorganised based on package, I.e. SDL.Video.Initialise. Anyway, nice code. Does SDLAda offer more than whats already (and used) in the library? > Yes, array slices to textures for one, allows sub image copying using Ada semantics. Also texture iterators, see the moose example.