comp.lang.ada
 help / color / mirror / Atom feed
From: anon@anon.org
Subject: Re: OpenGL in Ada
Date: Wed, 6 Oct 2010 03:45:17 +0000 (UTC)
Date: 2010-10-06T03:45:17+00:00	[thread overview]
Message-ID: <i8grcc$29ms$1@news.ett.com.ua> (raw)
In-Reply-To: d6318f95-59cd-4f12-8aaa-2746c14dbd18@a15g2000yqm.googlegroups.com

In <d6318f95-59cd-4f12-8aaa-2746c14dbd18@a15g2000yqm.googlegroups.com>, Yves Bailly <yves.bailly@gmail.com> 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.



  reply	other threads:[~2010-10-06  3:45 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-05 21:23 OpenGL in Ada Yves Bailly
2010-10-06  3:45 ` anon [this message]
2010-10-06  5:10   ` Yves Bailly
2010-10-06  9:51     ` Alex R. Mosteo
2010-10-06 10:38       ` Yves Bailly
2010-10-06 10:59         ` Ludovic Brenta
2010-10-06 16:07           ` Pascal Obry
2010-10-06 17:32             ` Yves Bailly
2010-10-06  8:38 ` Gautier write-only
2010-10-07  1:52   ` BrianG
2010-10-07 22:06     ` Yves Bailly
2010-10-08 17:11     ` Shark8
2010-10-08 15:02 ` Lucretia
2010-10-08 20:42   ` Yves Bailly
2010-10-10 19:49     ` Vadim Godunko
  -- strict thread matches above, loose matches on Subject: below --
2010-07-08  2:42 Shark8
2010-07-08 14:15 ` John B. Matthews
2010-07-09  2:18   ` anon
2010-07-12 16:51   ` Warren
2010-07-13 12:26     ` Ludovic Brenta
2010-07-13 13:13       ` Warren
2010-07-09 11:43 ` Gautier write-only
2010-07-09 15:11 ` Gene
2010-07-09 17:38   ` Shark8
2010-07-09 20:54     ` Gene
2010-07-12 17:04       ` Warren
2010-07-10  4:00     ` BrianG
2010-07-10 11:47       ` Gautier write-only
2010-07-11  2:45         ` BrianG
2010-07-11  4:10           ` Gautier write-only
2010-07-11  5:30       ` tmoran
2010-07-11 20:46         ` anon
2010-07-12 14:17           ` Shark8
2010-07-13  0:45             ` BrianG
2010-07-13 17:50               ` anon
2010-07-13 18:37                 ` Shark8
2015-01-30 14:45 ` Lucretia
2015-01-30 18:41   ` David Botton
2009-10-28 17:12 Opengl " Pablo
2009-10-28 18:01 ` Pascal Obry
2009-10-28 19:04   ` John B. Matthews
2009-10-29  6:11 ` Gautier write-only
2000-04-27  0:00 OpenGl in ADA Anderson
2000-04-27  0:00 ` Pascal Obry
replies disabled

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