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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5b7ee26df9f9c357 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!z8g2000yqz.googlegroups.com!not-for-mail From: Gautier write-only Newsgroups: comp.lang.ada Subject: Re: OpenGL in Ada Date: Sat, 10 Jul 2010 04:47:55 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <68dd0333-f502-4351-9e50-4ec83bddc44e@k39g2000yqd.googlegroups.com> NNTP-Posting-Host: 85.1.45.4 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1278762478 31644 127.0.0.1 (10 Jul 2010 11:47:58 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 10 Jul 2010 11:47:58 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z8g2000yqz.googlegroups.com; posting-host=85.1.45.4; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.9 Safari/533.2,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:12307 Date: 2010-07-10T04:47:55-07:00 List-Id: On 10 juil, 06:00, BrianG wrote: > One problem you'll have is if a user wants to make a call with all > literals, i.e. Color(1, 2, 3) or Color(1.0, 2.0, 3.0), the > compiler won't know which version to use. Sure it will know! The confusion is rather when the GL.Float and the GL.Double versions are named Color. One solution is to choose one type as "most common" per category (floating-point, integer), and for instance name "Color" for GL.Double and Color_f for GL.Float: http://globe3d.sourceforge.net/g3d_html/gl__ads.htm#3437_13 There is also an automatic tool to generate these parts of bindings in a consistent manner, with Import pragmata etc. - just use it (or the binding itself...). G.