]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sky/cloud.hxx
Updates to cloud code to add different basic cloud types. This isn't the
[simgear.git] / simgear / sky / cloud.hxx
index 1da11bb5a2246da38054490e7a6c9aa3f2e1b417..05961c54af56af73f0d14dc36c9ee5d6f1f5e00a 100644 (file)
 #include <simgear/misc/fgpath.hxx>
 
 
+enum SGCloudType {
+    SG_CLOUD_OVERCAST = 0,
+    SG_CLOUD_MOSTLY_CLOUDY,
+    SG_CLOUD_MOSTLY_SUNNY,
+    SG_CLOUD_CIRRUS,
+};
+
+
 class SGCloudLayer {
 
+private:
+
     ssgRoot *layer_root;
     ssgTransform *layer_transform;
     ssgSimpleState *layer_state;
@@ -63,7 +73,7 @@ public:
 
     // build the cloud object
     void build( FGPath path, double size, double asl, double thickness,
-               double transition );
+               double transition, SGCloudType type );
 
     // repaint the cloud colors based on current value of sun_angle,
     // sky, and fog colors.  This updates the color arrays for
@@ -91,4 +101,8 @@ public:
 };
 
 
+// make an ssgSimpleState for a cloud layer given the named texture
+ssgSimpleState *SGCloudMakeState( const string &path );
+
+
 #endif // _SG_CLOUD_HXX_