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: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: is getting OpenGL to work with Ada a lost cause? Date: Sun, 3 Aug 2014 11:54:40 +0200 Organization: cbb software GmbH Message-ID: References: <64ff459f-98c0-4fab-bcdd-d9fafe3311e6@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: qHNcUCBwwd01dPSBp/L1cg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:21418 Date: 2014-08-03T11:54:40+02:00 List-Id: On Sun, 3 Aug 2014 02:35:49 -0700 (PDT), jsquirek@gmail.com wrote: > On Saturday, August 2, 2014 4:54:33 PM UTC-4, pinc...@gmail.com wrote: >> I've noticed that most, if not all the tutorials are set up to use OpenGl >> with C/C++ (and in SOME cases, ObjectPascal/Delphi). >> >> all the tutorials for using them with Ada are out of date, or have dead links. > > Well, I will admit it isn't easy at first to learn and get complicated > libraries running with Ada on Windows but it certainly isn't a lost cause. > If you are such a novice that you are looking to learn OpenGL with Ada > tutorials I would say it is a lost cause -- there just are not much of us > in the community and up to date tutorials especially for specific > libraries are rare. OpenGL is a C library designed for C programmers so it > is probably best you use C first then apply your knowledge to using Ada > libraries if you are still adamant. It is always the case that native tutorials are better than whatever of the bindings. In the case of OpenGL, it is such a straightforward thing that there would be no much difference between Ada, C or any other language calls anyway. I have no idea why existing Ada bindings are so difficult to make working. Especially because there probably is no urgent need in having such bindings at all. It is a long time since I programmed in OpenGL, but most of it could be called using ad-hoc "pragma Convention (C," calls, because there is not much meat behind its types anyway. I bet whatever problems the poster had, were with libraries and gcc setup, not with Ada. I also guess that this https://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Running-the-binding-generator.html#Running-the-binding-generator might produce pretty good results for OpenGL, to start with or look at. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de