comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: is getting OpenGL to work with Ada a lost cause?
Date: Sun, 3 Aug 2014 11:54:40 +0200
Date: 2014-08-03T11:54:40+02:00	[thread overview]
Message-ID: <xklnknfx238h$.1r3huupp4mvzs.dlg@40tude.net> (raw)
In-Reply-To: cc15dfea-df0b-4320-848a-2b1faea5a691@googlegroups.com

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

  reply	other threads:[~2014-08-03  9:54 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-02 20:54 is getting OpenGL to work with Ada a lost cause? pincerfae
2014-08-03  9:35 ` jsquirek
2014-08-03  9:54   ` Dmitry A. Kazakov [this message]
2014-08-03 10:27     ` jsquirek
2014-08-03 11:56       ` Dmitry A. Kazakov
2014-08-03 12:40         ` jsquirek
2014-08-04 12:52           ` Dmitry A. Kazakov
2014-08-04 19:14             ` Björn Lundin
2014-08-03 16:46     ` Shark8
2014-08-04  1:38       ` Nasser M. Abbasi
2014-08-03 16:43   ` Shark8
2014-08-03 12:12 ` francois_fabien
2014-08-05 16:24 ` leonid.dulman
2014-08-13 23:23   ` pincerfae
2014-08-14  1:47     ` Shark8
2014-08-15 14:53       ` Stephen Leake
2014-08-15 16:50         ` Shark8
2014-08-15 13:28     ` jsquirek
2014-08-16 19:33       ` Nasser M. Abbasi
2014-08-16 22:13         ` pincerfae
2014-08-17 11:32           ` Luke A. Guest
2014-08-18 16:35             ` Shark8
2014-08-18 20:26               ` Luke A. Guest
2014-08-18 21:01                 ` Shark8
2014-08-18 21:44                   ` Luke A. Guest
2014-08-18 21:49                   ` Nasser M. Abbasi
2014-08-18 22:21                     ` Robert A Duff
2014-08-19  9:39                       ` Simon Wright
2014-08-19  1:25                     ` Shark8
2014-08-19  9:45                       ` Simon Wright
2014-08-19 21:59                         ` Shark8
2014-08-20 20:09                         ` erlo
2014-08-19  7:42                     ` Dmitry A. Kazakov
2014-08-19 11:36                     ` Björn Lundin
2014-08-25  5:27                     ` Tero Koskinen
2014-08-19  0:57           ` Nasser M. Abbasi
2014-08-19  1:29             ` Luke A. Guest
2014-08-24 22:35               ` pincerfae
2014-08-25  4:21                 ` jsquirek
2014-08-25 15:58                   ` Lucretia
2014-08-24 17:16 ` gdotone
2014-08-24 18:49   ` gautier_niouzes
2014-09-02 16:39 ` Quentin Ochem
2014-09-12  8:14   ` reinkor
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox