]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sky/cloud.cxx
Tweaks to follow flightgear STL standard coding procedure.
[simgear.git] / simgear / sky / cloud.cxx
index 5d6ec288deb9aded15a9ab8198c0957ee50798d5..78bde43cad524ff33a5940be86013e514a9a0fc8 100644 (file)
 #  include <config.h>
 #endif
 
+#include <simgear/compiler.h>
+
 #include <stdio.h>
-#include <iostream>
+#include STL_IOSTREAM
 
 #include <plib/sg.h>
 #include <plib/ssg.h>
 
-#include <simgear/math/fg_random.h>
 #include <simgear/math/point3d.hxx>
 #include <simgear/math/polar3d.hxx>
+#include <simgear/math/sg_random.h>
 
 #include "cloud.hxx"
 
@@ -70,7 +72,7 @@ void SGCloudLayer::build( double s, double asl, double thickness,
 
     sgSetVec3( vertex, -size, -size, 0.0f );
     sgVec2 base;
-    sgSetVec2( base, fg_random(), fg_random() );
+    sgSetVec2( base, sg_random(), sg_random() );
     sgSetVec2( tc, base[0], base[1] );
     cl->add( color );
     vl->add( vertex );
@@ -162,9 +164,9 @@ bool SGCloudLayer::reposition( sgVec3 p, sgVec3 up, double lon, double lat,
 
     // Rotate to proper orientation
     // printf("  lon = %.2f  lat = %.2f\n", 
-    //        FG_Longitude * SGD_RADIANS_TO_DEGREES,
-    //        FG_Latitude * SGD_RADIANS_TO_DEGREES);
-    // xglRotatef( f->get_Longitude() * SGD_RADIANS_TO_DEGREES, 0.0, 0.0, 1.0 );
+    //        lon * SGD_RADIANS_TO_DEGREES,
+    //        lat * SGD_RADIANS_TO_DEGREES);
+    // xglRotatef( lon * SGD_RADIANS_TO_DEGREES, 0.0, 0.0, 1.0 );
     sgSetVec3( axis, 0.0, 0.0, 1.0 );
     sgMakeRotMat4( LON, lon * SGD_RADIANS_TO_DEGREES, axis );