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,75fb93409baf1e22 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!k10g2000yqa.googlegroups.com!not-for-mail From: Lucretia Newsgroups: comp.lang.ada Subject: Re: OpenGL in Ada Date: Fri, 8 Oct 2010 08:02:43 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2f006952-2814-4775-935c-e9f095c7f79c@k10g2000yqa.googlegroups.com> References: NNTP-Posting-Host: 90.201.91.53 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1286564557 14306 127.0.0.1 (8 Oct 2010 19:02:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 8 Oct 2010 19:02:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k10g2000yqa.googlegroups.com; posting-host=90.201.91.53; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:14441 Date: 2010-10-08T08:02:43-07:00 List-Id: On Oct 5, 10:23=A0pm, Yves Bailly wrote: > The subprograms are not imported using "pragma Import", but rather > declared as access to subprograms (procedures or functions). The > access are then resolved in a lenghty "Init_GL" procedure, which > relies on the "glGetProcAddress" function imported from SDL. So the > generated binding requires SDL to work. That is something that shouldn't be done here. Most of the API can be linked to directly with pragma import, the Win32 version needs to use a different type of import, stdcall, I think; see the GNAT manuals. glGetProcAddress is for getting the address of subprograms from a DLL, i.e. the GL extensions. It would be nice to have just 1 combined effort for GL under a BSD licence so we can get rid of the x amount of already existing versions, I think I know of about 4-5 at the moment. Luke. Luke.