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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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-7-bit Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!news.ett.com.ua!not-for-mail From: anon@anon.org Newsgroups: comp.lang.ada Subject: Re: OpenGL in Ada Date: Wed, 6 Oct 2010 03:45:17 +0000 (UTC) Organization: ETT newsserver Message-ID: References: Reply-To: anon@anon.org NNTP-Posting-Host: dialup-4.225.171.151.dial1.dallas1.level3.net X-Complaints-To: usenet@news.ett.com.ua X-Notice: Filtered by postfilter v. 0.6.1 X-Newsreader: IBM NewsReader/2 2.0 Xref: g2news1.google.com comp.lang.ada:14405 Date: 2010-10-06T03:45:17+00:00 List-Id: In , Yves Bailly writes: >Greetings to everyone in this group, > >This is my very first posting, so please apologize if I do something >really wrong (as well as for my english, it's not my native language). > >I have created a small program which generates a pair of files, namely >"gl.ads" and "gl.adb", to use OpenGL from Ada. The files are generated >by reading the official OpenGL specifications files (namely >"enum.spec", "gl.spec" and "gl.tm") which can be found from the >official OpenGL page http://www.opengl.org/registry/ (no GLU nor GLUT >though). > >The OpenGL subprograms are named according to the usual C naming >scheme ("glBegin", "glVertex3d" and so on), so the result looks more >like C than like Ada, but at least it allows to read tutorials more >easily (as most of them are based on C). So the generated binding is >rather low-level (I think "thin binding" is the appropriate wording). > >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. > >I'm far from being an Ada expert. I would really appreciate if someone >interested in using OpenGL with Ada would accept to spend some time: >- to point me to the horrible things I probably wrote in this program; >- to tell if the generated binding is of good or bad quality. > >Thanks for your time and best regards, > >-- Yves Bailly >yves.bailly@gmail.com The complete Ada openGL source bindings can be found at: adaopengl.sourceforge.net All you needs is to download and install openGL engine set up for your OS. I do have a few samples that work with Linux\Windows.