]> git.mxchange.org Git - flightgear.git/commitdiff
Incorporated sun, moon, and star positioning code contributed by Durk Talsma.
authorcurt <curt>
Sat, 25 Oct 1997 03:24:21 +0000 (03:24 +0000)
committercurt <curt>
Sat, 25 Oct 1997 03:24:21 +0000 (03:24 +0000)
Main/Makefile
Main/depend
Main/fg_init.c
Scenery/moon.h
Scenery/scenery.c
Simulator/make.inc

index 98451a63581f778adaff891b517da0a28ce138b8..6d5bde30671dab035e6fa535e4e43b5317bc9442 100644 (file)
@@ -70,9 +70,18 @@ GLUTkey.o:
 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.
 #
index 33d6d38e54da3d2dfb15722a72c1adaa845a02c3..b9a10004ba7977218aab3f46beef7fac0a65efe8 100644 (file)
@@ -26,9 +26,11 @@ fg_init.o: fg_init.c fg_init.h views.h ../types.h ../Flight/flight.h \
  ../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 \
index 1b7950e851bca2016cecd922b158cf6fcb8df43b..6d16f99e10f97e71475adb6fb4409887b7ef6084 100644 (file)
@@ -38,6 +38,8 @@
 #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"
@@ -174,6 +176,12 @@ void fgInitSubsystems( void ) {
        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();
 
@@ -216,9 +224,12 @@ void fgInitSubsystems( void ) {
 
 
 /* $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.
  *
index c43f6dcaf863ffbe773649fbe39b5c62a0e2775f..b23ae4e3bd90386b33a965da678b4093d4c1c80d 100644 (file)
@@ -35,8 +35,8 @@
 void fgMoonInit();
 
 /* Draw the Stars */
-
 void fgMoonRender();
+
 struct CelestialCoord fgCalculateMoon(struct OrbElements Params,
                                       struct OrbElements sunParams,
                                       struct fgTIME t);
@@ -48,7 +48,10 @@ extern struct OrbElements pltOrbElements[9];
 
 
 /* $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.
+ *
  */
index c70a5b6cdb0127c20d721722b329af5a06fc0092..c5a354f2b639c17bb9dbbef4dd62a3fbbdd43b24 100644 (file)
@@ -34,8 +34,9 @@
 
 #include "../general.h"
 
-#include "scenery.h"
+#include "moon.h"
 #include "parsevrml.h"
+#include "scenery.h"
 #include "stars.h"
 
 
@@ -89,10 +90,13 @@ void fgSceneryRender() {
 
 
 /* $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.
  *
index 5adadbacac5c7a3f60ccf371a09b9f75cc91a907..c2ec5c9a7a9dd91c758aff72ed571888e9e4e122 100644 (file)
@@ -98,28 +98,31 @@ GLOBAL_CFLAGS = -g -Wall -DVERSION=\"$(VERSION)\"
 #---------------------------------------------------------------------------
 # 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.
 #