Ross Golder writes:
>
>It seems Mesa 4.0.1 doesn't come with glut, like 3.4. Has
>using freeglut
>been discussed before? I couldn't find anything in the archives.
>
><http://freeglut.sf.net/>
>
>I played around with this before, but didn't complete the job. I spoke
>with the current maintainer, and he says plenty of projects
>use it, it's
>very stable, and since taking over maintainence, he hasn't heard of any
>problems with it.
>
>As I see it, to get Flightgear up to speed, it would require a bit of
>auto* trickery, and possibly a couple of #ifdefs around the #include
><GL/glut.h> bits.
>
>Anyone thought about this before? Care to comment?
the PLib team has a long range goal of using freeglut as a base
for a 'better' gaming oriented library, but none of us have felt the
mecessary 'itch' as GLUT seems to work well enough.
These configure.in 'snippets' should help anyone wanting to try it out
AC_CHECK_HEADER(GL/glut.h, AC_DEFINE(GLUT_IS_PRESENT))
AC_CHECK_HEADER(GL/freeglut.h, AC_DEFINE(FREEGLUT_IS_PRESENT))
dnl check for glut...or freeglut
AC_CHECK_LIB(freeglut, glutGetModifiers,,,$opengl_LIBS)
if test "x$ac_cv_lib_freeglut_glutGetModifiers" = "xno" ; then
dnl if no freeglut, check for Real GLUT
AC_CHECK_LIB(glut, glutGetModifiers,,,$opengl_LIBS)
fi
Then all the #include <GL/glut.h> lines become something like
# ifdef FREEGLUT_IS_PRESENT
# include <GL/freeglut.h>
# else
# include <GL/glut.h>
# endif
HTH
Norman
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel