GLTKkey.o:
$(CC) $(CFLAGS) -c GLTKkey.c -o $@
+fg_init.o:
+ $(CC) $(CFLAGS) -c fg_init.c -o $@
+
+views.o:
+ $(CC) $(CFLAGS) -c views.c -o $@
+
#---------------------------------------------------------------------------
# $Log$
+# Revision 1.34 1997/10/25 03:24:21 curt
+# Incorporated sun, moon, and star positioning code contributed by Durk Talsma.
+#
# Revision 1.33 1997/09/04 02:17:35 curt
# Shufflin' stuff.
#
../Cockpit/hud.h ../Cockpit/../Aircraft/aircraft.h \
../Cockpit/../Flight/flight.h ../Cockpit/../Controls/controls.h \
../Joystick/joystick.h ../Math/fg_random.h ../Scenery/mesh.h \
+ ../Scenery/moon.h ../Scenery/orbits.h ../Scenery/../Time/fg_time.h \
+ ../Scenery/../Time/../types.h ../Scenery/../Time/../Flight/flight.h \
../Scenery/scenery.h ../Scenery/../types.h ../Scenery/stars.h \
- ../Time/fg_time.h ../Time/../types.h ../Time/../Flight/flight.h \
- ../Time/sunpos.h ../Weather/weather.h
+ ../Time/fg_time.h ../Time/sunpos.h ../Time/../types.h \
+ ../Weather/weather.h
views.o: views.c views.h ../types.h ../Flight/flight.h \
../Flight/Slew/slew.h ../Flight/LaRCsim/ls_interface.h \
../Flight/LaRCsim/../flight.h ../Math/mat3.h ../constants.h \
#include "../Joystick/joystick.h"
#include "../Math/fg_random.h"
#include "../Scenery/mesh.h"
+#include "../Scenery/moon.h"
+#include "../Scenery/orbits.h"
#include "../Scenery/scenery.h"
#include "../Scenery/stars.h"
#include "../Time/fg_time.h"
exit( 1 );
}
+ /* Initialize the orbital elements of sun, moon and mayor planets */
+ fgSolarSystemInit(*t);
+
+ /* Intialize the moon's position */
+ fgMoonInit();
+
/* Initialize the Stars subsystem */
fgStarsInit();
/* $Log$
-/* Revision 1.9 1997/09/23 00:29:39 curt
-/* Tweaks to get things to compile with gcc-win32.
+/* Revision 1.10 1997/10/25 03:24:23 curt
+/* Incorporated sun, moon, and star positioning code contributed by Durk Talsma.
/*
+ * Revision 1.9 1997/09/23 00:29:39 curt
+ * Tweaks to get things to compile with gcc-win32.
+ *
* Revision 1.8 1997/09/22 14:44:20 curt
* Continuing to try to align stars correctly.
*
void fgMoonInit();
/* Draw the Stars */
-
void fgMoonRender();
+
struct CelestialCoord fgCalculateMoon(struct OrbElements Params,
struct OrbElements sunParams,
struct fgTIME t);
/* $Log$
-/* Revision 1.1 1997/10/25 03:16:09 curt
-/* Initial revision of code contributed by Durk Talsma.
+/* Revision 1.2 1997/10/25 03:24:23 curt
+/* Incorporated sun, moon, and star positioning code contributed by Durk Talsma.
/*
+ * Revision 1.1 1997/10/25 03:16:09 curt
+ * Initial revision of code contributed by Durk Talsma.
+ *
*/
#include "../general.h"
-#include "scenery.h"
+#include "moon.h"
#include "parsevrml.h"
+#include "scenery.h"
#include "stars.h"
/* $Log$
-/* Revision 1.20 1997/10/25 03:18:27 curt
-/* Incorporated sun, moon, and planet position and rendering code contributed
-/* by Durk Talsma.
+/* Revision 1.21 1997/10/25 03:24:24 curt
+/* Incorporated sun, moon, and star positioning code contributed by Durk Talsma.
/*
+ * Revision 1.20 1997/10/25 03:18:27 curt
+ * Incorporated sun, moon, and planet position and rendering code contributed
+ * by Durk Talsma.
+ *
* Revision 1.19 1997/09/05 14:17:30 curt
* More tweaking with stars.
*
#---------------------------------------------------------------------------
# Linux/Mesa with the GLUT toolkit
#
-# INTERFACE_FLAGS = -DGLUT
-# INTERFACE_LIBS = -lglut
-# INTERFACE_FILES = GLUTmain.c GLUTkey.c
-# MESA_LIBS = -L/usr/lib/mesa -lMesatk -lMesaaux -lMesaGLU -lMesaGL
-# X11_LIBS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11
-# GRAPHICS_LIBS = $(MESA_LIBS) $(X11_LIBS)
-# FG_CFLAGS = $(GLOBAL_CFLAGS)
+INTERFACE_FLAGS = -DGLUT
+INTERFACE_LIBS = -lglut
+INTERFACE_FILES = GLUTmain.c GLUTkey.c
+MESA_LIBS = -L/usr/lib/mesa -lMesatk -lMesaaux -lMesaGLU -lMesaGL
+X11_LIBS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11
+GRAPHICS_LIBS = $(MESA_LIBS) $(X11_LIBS)
+FG_CFLAGS = $(GLOBAL_CFLAGS)
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# Cygnus Win32 (gcc based) with a static version of the GLUT toolkit
#
-INTERFACE_FLAGS = -DGLUT
-INTERFACE_LIBS = ../Win32/libglut.a
-INTERFACE_FILES = GLUTmain.c GLUTkey.c
-GRAPHICS_LIBS = -lglu32 -lopengl32 -luser32 -lgdi32
-FG_CFLAGS = $(GLOBAL_CFLAGS) -DWIN32 -DUSE_RAND
+# INTERFACE_FLAGS = -DGLUT
+# INTERFACE_LIBS = ../Win32/libglut.a
+# INTERFACE_FILES = GLUTmain.c GLUTkey.c
+# GRAPHICS_LIBS = -lglu32 -lopengl32 -luser32 -lgdi32
+# FG_CFLAGS = $(GLOBAL_CFLAGS) -DWIN32 -DUSE_RAND
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# $Log$
+# Revision 1.16 1997/10/25 03:24:21 curt
+# Incorporated sun, moon, and star positioning code contributed by Durk Talsma.
+#
# Revision 1.15 1997/09/23 00:29:27 curt
# Tweaks to get things to compile with gcc-win32.
#