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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: is getting OpenGL to work with Ada a lost cause? Date: Sun, 03 Aug 2014 20:38:28 -0500 Organization: Aioe.org NNTP Server Message-ID: References: <64ff459f-98c0-4fab-bcdd-d9fafe3311e6@googlegroups.com> Reply-To: nma@12000.org NNTP-Posting-Host: +bGw3iKtw0btMD059xlTWg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: number.nntp.dca.giganews.com comp.lang.ada:188132 Date: 2014-08-03T20:38:28-05:00 List-Id: On 8/3/2014 11:46 AM, Shark8 wrote: > On 03-Aug-14 03:54, Dmitry A. Kazakov wrote: >> I have no idea why existing Ada bindings are so difficult to make working. > > Because in order to make a good [thick] Ada binding you have to "strain" > all the crap from the gl_enum soup; ideally this would entail the > creation of specific enumerations for the various parameters of the > various functions but with the addition of subtyping for various > near-complete matches on values. > I do not think even the concept of thick Ada binding to openGL is a good idea at all. The reason is not technical. But since all documentation on the net, and the books on openGL all use the 'thin' binding (original API), then if Ada would use its own thick binding, it means one can not make use of all these books and tutorials anymore. (I have openGL books, all use the C API, I'd like to still use these if I want to use Ada). Thin, 1:1, binding to commonly used C libraries is the best, since it allows one to use existing documentation to learn how to use it. --Nasser