]> git.mxchange.org Git - simgear.git/blobdiff - Astro/stars.c
Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
[simgear.git] / Astro / stars.c
index 6d3d4a53e94e15b0f73170a97997fc60b91b11f4..937d0d9e5fe526498d517b10fc21f731c34a99d0 100644 (file)
 #include <time.h>
 
 #include <GL/glut.h>
-#include "../XGL/xgl.h"
+#include <XGL/xgl.h>
 
-#include "orbits.h"
-#include "planets.h"
-#include "stars.h"
-
-#include "../Include/constants.h"
-#include "../Include/general.h"
-#include "../Aircraft/aircraft.h"
-#include "../Main/views.h"
-#include "../Time/fg_time.h"
+#include <Astro/orbits.h>
+#include <Astro/planets.h>
+#include <Astro/stars.h>
 
+#include <Include/fg_constants.h>
+#include <Include/general.h>
+#include <Aircraft/aircraft.h>
+#include <Main/views.h>
+#include <Time/fg_time.h>
+#include <Main/fg_debug.h>
 
 #define EpochStart           (631065600)
 #define DaysSinceEpoch(secs) (((secs)-EpochStart)*(1.0/(24*3600)))
@@ -56,7 +56,7 @@
 
 
 /* Initialize the Star Management Subsystem */
-void fgStarsInit() {
+void fgStarsInit( void ) {
     FILE *fd;
     struct fgGENERAL *g;
     struct CelestialCoord pltPos;
@@ -68,7 +68,7 @@ void fgStarsInit() {
     double ra_save1, decl_save1;
     int count, i, j, max_stars;
 
-    printf("Initializing stars\n");
+    fgPrintf( FG_ASTRO, FG_INFO, "Initializing stars\n");
 
     g = &general;
 
@@ -81,10 +81,10 @@ void fgStarsInit() {
     max_stars = FG_MAX_STARS;
 
     for ( i = 0; i < FG_STAR_LEVELS; i++ ) {
-       printf("  Loading %d Stars: %s\n", max_stars, path);
+       fgPrintf( FG_ASTRO, FG_INFO, "  Loading %d Stars: %s\n", max_stars, path);
 
        if ( (fd = fopen(path, "r")) == NULL ) {
-           printf("Cannot open star file: '%s'\n", path);
+           fgPrintf( FG_ASTRO, FG_ALERT, "Cannot open star file: '%s'\n", path);
            return;
        }
        
@@ -237,7 +237,7 @@ void fgStarsInit() {
 
 
 /* Draw the Stars */
-void fgStarsRender() {
+void fgStarsRender( void ) {
     struct fgFLIGHT *f;
     struct fgVIEW *v;
     struct fgLIGHT *l;
@@ -276,9 +276,21 @@ void fgStarsRender() {
 
 
 /* $Log$
-/* Revision 1.1  1998/01/07 03:16:20  curt
-/* Moved from .../Src/Scenery/ to .../Src/Astro/
+/* Revision 1.4  1998/01/27 00:47:49  curt
+/* Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
+/* system and commandline/config file processing code.
 /*
+ * Revision 1.3  1998/01/19 19:26:59  curt
+ * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+ * This should simplify things tremendously.
+ *
+ * Revision 1.2  1998/01/19 18:40:18  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
+ * Revision 1.1  1998/01/07 03:16:20  curt
+ * Moved from .../Src/Scenery/ to .../Src/Astro/
+ *
  * Revision 1.24  1997/12/30 22:22:39  curt
  * Further integration of event manager.
  *