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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,886c71cc8d798d67 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.86.39 with SMTP id m7mr5278663paz.4.1351110783848; Wed, 24 Oct 2012 13:33:03 -0700 (PDT) Received: by 10.68.223.229 with SMTP id qx5mr5337347pbc.15.1351110783831; Wed, 24 Oct 2012 13:33:03 -0700 (PDT) Path: s9ni23372pbb.0!nntp.google.com!kr7no9728379pbb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 24 Oct 2012 13:33:03 -0700 (PDT) In-Reply-To: <86af1284-8617-490e-8c1b-27d76aaae74d@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.20.190.126; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 69.20.190.126 References: <277d0e8f-6b00-44e9-8d1f-1d25007fcc72@googlegroups.com> <86af1284-8617-490e-8c1b-27d76aaae74d@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1bebff1a-e4d9-4c3c-bc63-2b41bb821399@googlegroups.com> Subject: Re: Anouncement: OpenGL Binding w/ Ada-2012. From: Shark8 Injection-Date: Wed, 24 Oct 2012 20:33:03 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-10-24T13:33:03-07:00 List-Id: 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.