From: BrianG <me@null.email>
Subject: Re: what is current status of OpenGL and Ada?
Date: Tue, 07 Feb 2012 18:00:50 -0500
Date: 2012-02-07T18:00:50-05:00 [thread overview]
Message-ID: <jgsaf5$904$1@dont-email.me> (raw)
In-Reply-To: <op.v9ajtvpzule2fv@douda-yannick>
On 02/06/2012 11:23 PM, Yannick Duchêne (Hibou57) wrote:
> Le Tue, 07 Feb 2012 02:33:49 +0100, BrianG <me@null.email> a écrit:
>> (I occasionally return to my attempt to build a binding, based on the
>> 'Red Book', but it doesn't hold enough interest for me to keep at it
>> very long. I did learn that you can't use a single name for all
>> versions of a function - because then you can't call it with all
>> literal parameters {there's no way to resolve the short/long or
>> float/double versions}. At a minimum, you need 2 names; I prefer to
>> use the 2nd for the literal case, but never came up with a reasonable
>> naming convention.)
>
> Or else four packages with static genericity.
>
> package OpenGL.With_Shorts is
> function F1 (Param1 : Short, ...);
> function F2 (Param1 : Short)
> function F2 return Short;
> ...
> end ...;
>
> package OpenGL.With_Longs is
> function F1 (Param1 : Long, ...);
> function F2 (Param1 : Long)
> function F2 return Long;
> ...
> end ...;
>
> And so on.
>
Yes, and that might be one good way to organize the bindings. I presume
that a typical program would tend to use one 'flavor' of number
more-or-less consistently.
One thing I would like is to a way to organize the package structure in
a way that makes _using_ it easier. Most OpenGL programs I've looked
at, which isn't many, with (or #include) all/most parts of the library
structure, because it was organized for the library _writer's_ benefit.
(This probably applies to most large, structured libraries).
--
---
BrianG
000
@[Google's email domain]
.com
next prev parent reply other threads:[~2012-02-07 23:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-05 6:52 what is current status of OpenGL and Ada? Nasser M. Abbasi
2012-02-05 7:03 ` Nasser M. Abbasi
2012-02-05 12:00 ` Yannick Duchêne (Hibou57)
2012-02-05 12:34 ` Nasser M. Abbasi
2012-02-05 16:21 ` Erich
2012-02-06 7:48 ` Gautier write-only
2012-02-07 1:33 ` BrianG
2012-02-07 4:14 ` Nasser M. Abbasi
2012-02-07 11:44 ` Gautier write-only
2012-02-07 4:18 ` Niklas Holsti
2012-02-07 4:23 ` Yannick Duchêne (Hibou57)
2012-02-07 23:00 ` BrianG [this message]
2012-02-06 2:24 ` Yannick Duchêne (Hibou57)
2014-09-12 23:34 ` fastrgv
2014-09-13 7:49 ` Simon Wright
2014-09-14 12:12 ` darkestkhan
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox