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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6b4b5545df0641df X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-15 16:01:57 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi_feed4!attbi.com!sccrnsc02.POSTED!not-for-mail Message-ID: <3EECFDD9.D661F2AA@mchsi.com> From: Bruce or Tracy Jacobs Reply-To: bruce.tracy@the-jacobs.org X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: OpenGL Ada References: <20030615233402.5c0f65d5.david@realityrift.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 12.219.156.75 X-Complaints-To: abuse@mchsi.com X-Trace: sccrnsc02 1055718116 12.219.156.75 (Sun, 15 Jun 2003 23:01:56 GMT) NNTP-Posting-Date: Sun, 15 Jun 2003 23:01:56 GMT Organization: MediaCom High Speed Internet Date: Sun, 15 Jun 2003 23:01:56 GMT Xref: archiver1.google.com comp.lang.ada:39212 Date: 2003-06-15T23:01:56+00:00 List-Id: Try this......
1.  Download and install Ada compiler and Windows 32 bit interface for
Windows:

    (a)  ftp://cs.nyu.edu/pub/gnat/3.15p/winnt/gnat-3.15p-nt.exe

         (installed at "C:\GNAT" for this example)

    (b)  ftp://cs.nyu.edu/pub/gnat/3.15p/winnt/gnatwin-3.15p.exe

         (installed at "C:\GNAT\bindings" for this example)


2.  Download and install Ada OpenGL interface:

    (a) http://perso.wanadoo.fr/pascal.obry/archive/glut32.tar.gz

        (installed at "C:\GNAT\glut32.jar" for this example)

  Link found at http://perso.wanadoo.fr/pascal.obry/contrib.html under
"GLUT for GNAT NT".
  Be sure to run "make" on the "C:\GNAT\glut32.jar\lib" directory. 
Refer
to the "readme"
  file after uncompressing on how to run the "make" command.


3.  (optional) Download and install Ada GNAT Integrated Development
Environment:

     (1)
ftp://ftp.usafa.af.mil/pub/dfcs/carlisle/adagide/adagide-install.exe


4.  Here are the paths which are now used:

    * GNAT compiler (gnat-3.15p-nt.exe) is installed at:

      C:\GNAT

    * GNAT Win32 interface (gantwin-3.15p.exe) is installed at:

      C:\GNAT\bindings\win32ada

    * GNAT glut32 interface (glut32.tar.gz) uncompress and installed at:

      C:\GNAT\glut32.tar

    * copy C:\GNAT\glut32.tar\lib\GLUT32.dll into the SYSTEM32 folder.

    * (optional) AdaGide is intalled into its default installation
folder.


5.  Since I prefer to build executables using BAT files, here is an
example
of the BAT
    file I used to build a DEMO Ada program found in C:
\GNAT\glut32.tar\demos.

    * C:\GNAT\glut32.tar\demos\build_it.bat

      set
ADA_INCLUDE_PATH=C:\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\adainclude
      set
ADA_OBJECTS_PATH=C:\GNAT\lib\gcc-lib\pentium-mingw32msv\2.8.1\adalib
      set ADA_LIBRARY_PATH=C:\GNAT\lib;%ADA_INCLUDE_PATH%

      set WIN32ADA=C:\GNAT\bindings\win32ada
      set
ADA_GLUT32_PATH=C:\GNAT\glut32.tar\lib;C:\GNAT\glut32.tar\include

      set MY_WORKING_DIR=C:\GNAT\glut32.tar\demos

      set
ADA_INCLUDE_PATH=%ADA_INCLUDE_PATH%;%WIN32ADA%;%ADA_GLUT32_PATH%;%MY_WORKING_DIR%
      set
ADA_OBJECTS_PATH=%ADA_OBJECTS_PATH%;%WIN32ADA%;%ADA_GLUT32_PATH%;%MY_WORKING_DIR%
      set
ADA_LIBRARY_PATH=%ADA_LIBRARY_PATH%;%WIN32ADA%;%ADA_GLUT32_PATH%;%MY_WORKING_DIR%

      set INCLUDES=-I%ADA_INCLUDE_PATH% -I%ADA_OBJECTS_PATH%
-I%ADA_LIBRARY_PATH%
      set OPTS=-O3 -gnatn 
      set LINK_ARGS=-largs -luser32 -lgdi32 -lcomdlg32 -lwinmm -L../lib
-lglu32 -lopengl32 -lglut32

      gnatmake %OPTS% %INCLUDES% ada_sphere %LINK_ARGS%
      gnatmake %OPTS% %INCLUDES% csg %LINK_ARGS%
      gnatmake %OPTS% %INCLUDES% double %LINK_ARGS%

    * Double-clicking "build_it.bat" should build 3 executables which
interface with OpenGL
      performing various OpenGL functions. These paths may be simplified
even further within
      this BAT file, or even defined at the Windows system level, if so
desired.

David Holm wrote: > > http://adaopengl.sf.net/ > > On Sun, 15 Jun 2003 22:02:05 +0100 > "Robin Neatherway" wrote: > > > Having learnt Ada fairly recently, I am now interested in doing some > > graphics work with it, and I am unable to find an OpenGL binding for Ada or > > any other appropriate tool. > > > > So, I guess I have two questions - firstly how should I go about starting to > > use graphics with Ada, and secondly where can I get the tools to do it? > > > > Thanks, > > Robin > > > >