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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9d97397bba859f70 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-17 14:23:55 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!news.algonet.se!algonet!news-stob.telia.net!telia.net!217.209.241.173.MISMATCH!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail From: David Holm Newsgroups: comp.lang.ada Subject: Re: Ada OpenGL bindings, how to use them with gnat ? Message-ID: <20030717232401.70a8dbc3.david@realityrift.com> References: <4a1641ae.0307150801.71bb5d16@posting.google.com> <20030717010405.349ead8c.david@realityrift.com> <4a1641ae.0307171242.5b143037@posting.google.com> X-Newsreader: Sylpheed version 0.8.10claws (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Thu, 17 Jul 2003 21:23:55 GMT NNTP-Posting-Host: 217.208.105.88 X-Complaints-To: abuse@telia.com X-Trace: newsb.telia.net 1058477035 217.208.105.88 (Thu, 17 Jul 2003 23:23:55 CEST) NNTP-Posting-Date: Thu, 17 Jul 2003 23:23:55 CEST Organization: Telia Internet Xref: archiver1.google.com comp.lang.ada:40441 Date: 2003-07-17T21:23:55+00:00 List-Id: 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