summaryrefslogtreecommitdiffstats
Unidiff
-rw-r--r--AUTHORS1
-rw-r--r--Makefile.am2
-rw-r--r--README24
-rw-r--r--ax/acx_pthread.m4242
-rw-r--r--ax/ax_check_gl.m495
-rw-r--r--ax/ax_check_glu.m471
-rw-r--r--ax/ax_check_glut.m478
-rw-r--r--ax/ax_lang_compiler_ms.m423
-rw-r--r--configure.ac24
-rw-r--r--src/Makefile.am28
-rw-r--r--src/controller/exp004display.c16
-rw-r--r--src/controller/exp004display.h6
-rw-r--r--src/controller/exp004mouse.c90
-rw-r--r--src/controller/exp004mouse.h6
-rw-r--r--src/controller/exp004processhits.c54
-rw-r--r--src/controller/exp004processhits.h8
-rw-r--r--src/controller/exp004reshape.c55
-rw-r--r--src/controller/exp004reshape.h6
-rw-r--r--src/exp004viz.c15
-rw-r--r--src/model/exp004base.c107
-rw-r--r--src/model/exp004base.h9
-rw-r--r--src/model/exp004state.h101
-rw-r--r--src/util/check_error.c17
-rw-r--r--src/util/check_error.h9
-rw-r--r--src/view/exp004geometry.c32
-rw-r--r--src/view/exp004geometry.h8
-rw-r--r--src/view/exp004state0.h8
-rw-r--r--src/view/exp004view.c44
-rw-r--r--src/view/exp004view.h6
29 files changed, 1185 insertions, 0 deletions
diff --git a/ax/ax_check_glu.m4 b/ax/ax_check_glu.m4
new file mode 100644
index 0000000..29d30bd
--- a/dev/null
+++ b/ax/ax_check_glu.m4
@@ -0,0 +1,71 @@
1dnl @synopsis AX_CHECK_GLU
2dnl
3dnl Check for GLU. If GLU is found, the required preprocessor and
4dnl linker flags are included in the output variables "GLU_CFLAGS" and
5dnl "GLU_LIBS", respectively. This macro adds the configure option
6dnl "--with-apple-opengl-framework", which users can use to indicate
7dnl that Apple's OpenGL framework should be used on Mac OS X. If
8dnl Apple's OpenGL framework is used, the symbol
9dnl "HAVE_APPLE_OPENGL_FRAMEWORK" is defined. If no GLU implementation
10dnl is found, "no_glu" is set to "yes".
11dnl
12dnl @category InstalledPackages
13dnl @author Braden McDaniel <braden@endoframe.com>
14dnl @version 2004-11-15
15dnl @license AllPermissive
16
17AC_DEFUN([AX_CHECK_GLU],
18[AC_REQUIRE([AX_CHECK_GL])dnl
19AC_REQUIRE([AC_PROG_CXX])dnl
20GLU_CFLAGS="${GL_CFLAGS}"
21if test "X${with_apple_opengl_framework}" != "Xyes"; then
22 AC_CACHE_CHECK([for OpenGL Utility library], [ax_cv_check_glu_libglu],
23 [ax_cv_check_glu_libglu="no"
24 ax_save_CPPFLAGS="${CPPFLAGS}"
25 CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
26 ax_save_LIBS="${LIBS}"
27 LIBS=""
28 ax_check_libs="-lglu32 -lGLU"
29 for ax_lib in ${ax_check_libs}; do
30 if test X$ax_compiler_ms = Xyes; then
31 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
32 else
33 ax_try_lib="${ax_lib}"
34 fi
35 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
36 #
37 # libGLU typically links with libstdc++ on POSIX platforms. However,
38 # setting the language to C++ means that test program source is named
39 # "conftest.cc"; and Microsoft cl doesn't know what to do with such a
40 # file.
41 #
42 AC_LANG_PUSH([C++])
43 if test X$ax_compiler_ms = Xyes; then
44 AC_LANG_PUSH([C])
45 fi
46 AC_LINK_IFELSE(
47 [AC_LANG_PROGRAM([[
48# if HAVE_WINDOWS_H && defined(_WIN32)
49# include <windows.h>
50# endif
51# include <GL/glu.h>]],
52 [[gluBeginCurve(0)]])],
53 [ax_cv_check_glu_libglu="${ax_try_lib}"; break])
54 if test X$ax_compiler_ms = Xyes; then
55 AC_LANG_POP([C])
56 fi
57 AC_LANG_POP([C++])
58 done
59 LIBS=${ax_save_LIBS}
60 CPPFLAGS=${ax_save_CPPFLAGS}])
61 if test "X${ax_cv_check_glu_libglu}" = "Xno"; then
62 no_glu="yes"
63 GLU_CFLAGS=""
64 GLU_LIBS=""
65 else
66 GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}"
67 fi
68fi
69AC_SUBST([GLU_CFLAGS])
70AC_SUBST([GLU_LIBS])
71])

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.