comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: Anouncement: OpenGL Binding w/ Ada-2012.
Date: Wed, 24 Oct 2012 13:33:03 -0700 (PDT)
Date: 2012-10-24T13:33:03-07:00	[thread overview]
Message-ID: <1bebff1a-e4d9-4c3c-bc63-2b41bb821399@googlegroups.com> (raw)
In-Reply-To: <86af1284-8617-490e-8c1b-27d76aaae74d@googlegroups.com>

On Tuesday, October 23, 2012 9:38:26 PM UTC-6, joel.s.w...@gmail.com wrote:
> 
> Do you intend to get this working with modern OpenGL (ie 3+), as I was disappointed to see that the existing Ada bindings are only for OpenGL 2.1 and being able to use current OpenGL from current Ada would be great.

Yes, I am intending to do so; the current OpenGL is 4.3 -- the current problem that I'm considering is how to address open-gl's "objects" enumerations (lights, textures, etc.)

Typing/subtyping is an excellent way to handle these, given I can specify it as a range; i.e. Subtype Light_Number is Enum Range GL_Light0 .. GL_Light0+MAX_LIGHTS.

The current [re-]design problem I'm considering involves this exact problem; the number of lights is determined at runtime [unless I decide to use the specification minimums]... which means passing runtime-queried parameters into generic-packages.

> 
> Keep up the good work.

Thank you.



  reply	other threads:[~2012-10-24 20:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-18 17:16 Anouncement: OpenGL Binding w/ Ada-2012 Shark8
2012-10-24  3:38 ` joel.s.williamson
2012-10-24 20:33   ` Shark8 [this message]
2012-10-24 16:32 ` Quentin Ochem
2012-10-24 20:40   ` Shark8
2012-10-25 22:22     ` Quentin Ochem
2012-10-26  1:46       ` Shark8
2012-10-26 13:50 ` Yannick Duchêne (Hibou57)
2012-10-27  1:56   ` Shark8
replies disabled

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