comp.lang.ada
 help / color / mirror / Atom feed
From: David Holm <david@realityrift.com>
Subject: Re: Ada OpenGL bindings, how to use them with gnat ?
Date: Thu, 17 Jul 2003 21:23:55 GMT
Date: 2003-07-17T21:23:55+00:00	[thread overview]
Message-ID: <20030717232401.70a8dbc3.david@realityrift.com> (raw)
In-Reply-To: 4a1641ae.0307171242.5b143037@posting.google.com

On 17 Jul 2003 13:42:22 -0700
fab102@bluemail.ch (Karim) wrote:

> Hello 
> 
> 1.There exist no command for gnatgcc on my system , but I  have
> installed the gnatport for FreeBSD  on it. Can you help me with this ?

Change ADA_CC in Make.conf to adagcc, gnatgcc is the name used by gentoo linux. FreeBSD for some
reason chose adagcc.

> 2.I cannot imagine how to use the bindings, does they works like
> libraries ?

All you really have to do is "with" whatever you need (i.e. OpenGL and OpenGL.GLUT) and then add
adaopengl-0.10/adaopengl to your includepath (-I/usr/home/karim/ada/adaopengl-0.10/adaopengl)

> 3.You are right. It seems that it is not that hard to write a simple
> ada opengl application to open a window, but how can I compile it with
> gnat ??  (What is the exact console command to compile a basic opengl
> or glut source ??)

gnatmake your_main_procedure -I/usr/home/karim/ada/adaopengl-0.10/adaopengl \
        -largs -L/usr/X11R6/lib -lX11-lXext-lGL-lGLU -lglut

> 4. Is there a lib to load images (textures) with ada ?? (I don`t think
> that mesa/GL are shipping one.)

I haven't really looked. But loading tga (targa) is very easy, check www.wotsit.org for the
specification.

I'm considering going through the whole mess of using auto* or maybe pmk (pmk.sf.net) for the
next release or the release after to make it easier for new users and windiots (who don't seem
to have a clue about using a console) to compile the thing.

//David Holm



  reply	other threads:[~2003-07-17 21:23 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-15 16:01 Ada OpenGL bindings, how to use them with gnat ? Karim
2003-07-16 23:03 ` David Holm
2003-07-17 16:37   ` chris.danx
2003-07-17 18:45     ` David Holm
2003-07-17 20:42   ` Karim
2003-07-17 21:23     ` David Holm [this message]
2003-07-18 10:39       ` Karim
2003-07-18 13:32         ` David Holm
2003-07-18 16:26           ` chris.danx
2003-07-18 17:24             ` David Holm
2003-07-18 21:46               ` Karim
2003-07-19 10:00                 ` David Holm
2003-07-22 14:28                   ` Karim
2003-07-22 14:59                     ` David Holm
replies disabled

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