X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fsky%2Fcloud.cxx;h=78bde43cad524ff33a5940be86013e514a9a0fc8;hb=f1ab6e2533a1bf07439b3d5918430f496158d8f3;hp=5d6ec288deb9aded15a9ab8198c0957ee50798d5;hpb=e15ffbc85630ae3ae947812cf2ef59162cce7b6b;p=simgear.git diff --git a/simgear/sky/cloud.cxx b/simgear/sky/cloud.cxx index 5d6ec288..78bde43c 100644 --- a/simgear/sky/cloud.cxx +++ b/simgear/sky/cloud.cxx @@ -20,15 +20,17 @@ # include #endif +#include + #include -#include +#include STL_IOSTREAM #include #include -#include #include #include +#include #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 );