#ifdef GLUT
#include <GL/glut.h>
#include "GLUTkey.h"
-#elif MESA_TK
- /* assumes -I/usr/include/mesa in compile command */
- #include "gltk.h"
- #include "GLTKkey.h"
#endif
#include "../constants.h"
#ifdef GLUT
glutSwapBuffers();
- #elif MESA_TK
- tkSwapBuffers();
#endif
}
fgUpdateVisuals();
if ( ! use_signals ) {
+ /* flight model */
fgUpdateTimeDepCalcs(multi_loop);
}
/* Initialize windows */
glutCreateWindow("Flight Gear");
-
- #elif MESA_TK
- /* Define initial window size */
- tkInitPosition(0, 0, 640, 480);
-
- /* Define Display Parameters */
- tkInitDisplayMode( TK_RGB | TK_DEPTH | TK_DOUBLE | TK_DIRECT );
-
- /* Initialize the main window */
- if (tkInitWindow("Flight Gear") == GL_FALSE) {
- tkQuit();
- }
#endif
/* seed the random number generater */
/* pass control off to the GLUT event handler */
glutMainLoop();
- #elif MESA_TK
- /* call fgReshape() on expose events */
- tkExposeFunc( fgReshape );
-
- /* call fgReshape() on window resizes */
- tkReshapeFunc( fgReshape );
-
- /* call key() on keyboard event */
- tkKeyDownFunc( GLTKkey );
-
- /* call fgMainLoop() whenever there is nothing else to do */
- tkIdleFunc( fgMainLoop );
-
- /* draw the scene */
- tkDisplayFunc( fgUpdateVisuals );
-
- /* pass control off to the tk event handler */
- tkExec();
#endif
return(0);
}
-#ifdef NO_PRINTF
-
-#include <stdarg.h>
-int printf (const char *format, ...) {
-}
+#ifdef NO_PRINTF
+ #include <stdarg.h>
+ int printf (const char *format, ...) {
+ }
#endif
/* $Log$
-/* Revision 1.1 1997/08/02 18:45:00 curt
-/* Renamed GLmain.c GLUTmain.c
+/* Revision 1.2 1997/08/04 20:25:15 curt
+/* Organizational tweaking.
/*
+ * Revision 1.1 1997/08/02 18:45:00 curt
+ * Renamed GLmain.c GLUTmain.c
+ *
* Revision 1.43 1997/08/02 16:23:47 curt
* Misc. tweaks.
*
TARGET=fg0
-CFILES = GLUTmain.c $(INTERFACE_FILES) mesh2GL.c
+CFILES = GLUTmain.c $(INTERFACE_FILES)
OFILES = $(CFILES:.c=.o)
AFILES = ../Aircraft/libAircraft.a ../Controls/libControls.a \
../Flight/libFlight.a ../Flight/LaRCsim/libLaRCsim.a \
- ../Flight/Slew/libSlew.a ../Math/libMath.a \
- ../Scenery/libScenery.a \
- ../Time/libTime.a ../Weather/libWeather.a
+ ../Flight/Slew/libSlew.a ../Scenery/libScenery.a \
+ ../Time/libTime.a ../Weather/libWeather.a ../Math/libMath.a
include ../make.inc
GLTKkey.o:
$(CC) $(CFLAGS) -c GLTKkey.c -o $@
-mesh2GL.o:
- $(CC) $(CFLAGS) -c mesh2GL.c -o $@
-
#---------------------------------------------------------------------------
# $Log$
+# Revision 1.29 1997/08/04 20:25:15 curt
+# Organizational tweaking.
+#
# Revision 1.28 1997/08/02 18:45:01 curt
# Renamed GLmain.c GLUTmain.c
#
../Scenery/scenery.h ../Math/fg_random.h ../Math/mat3.h \
../Math/polar.h ../Math/../types.h ../Time/fg_timer.h \
../Weather/weather.h
-mesh2GL.o: mesh2GL.c ../constants.h ../Scenery/mesh.h \
- ../Scenery/scenery.h ../Math/fg_geodesy.h ../Math/fg_random.h \
- ../Math/mat3.h ../Math/polar.h ../Math/../types.h