]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sky/skysun.hxx
Fixed a typo in the sky dome painting code.
[simgear.git] / simgear / sky / skysun.hxx
index 16d2947262dbe5f8e835921217da7b4bdf95a412..77e5d2a93bbc027ae2449ad7a5d7778b44fad303 100644 (file)
@@ -38,9 +38,11 @@ class FGSkySun {
 
     ssgSelector *sun_selector;
     ssgTransform *sun_transform;
-    ssgSimpleState *sun_state;
+    ssgSimpleState *orb_state;
     ssgSimpleState *halo_state;
 
+    ssgColourArray *cl;
+
 public:
 
     // Constructor
@@ -58,11 +60,14 @@ public:
     // 0 degrees = high noon
     // 90 degrees = sun rise/set
     // 180 degrees = darkest midnight
-    bool repaint( sgVec3 sky_color, sgVec3 fog_color, double sun_angle );
+    bool repaint( double sun_angle );
 
     // reposition the sun at the specified right ascension and
-    // declination
-    bool reposition( double rightAscension, double declination );
+    // declination, offset by our current position (p) so that it
+    // appears fixed at a great distance from the viewer.  Also add in
+    // an optional rotation (i.e. for the current time of day.)
+    bool reposition( sgVec3 p, double angle,
+                    double rightAscension, double declination );
 
     // Draw the sun
     bool draw();