]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sky/cloud.hxx
Updates to remove unneeded dependencies on FlightGear and SimGear.
[simgear.git] / simgear / sky / cloud.hxx
index 1da11bb5a2246da38054490e7a6c9aa3f2e1b417..cbc425a2cea685b515b229d730c67393bbd07255 100644 (file)
 #ifndef _SG_CLOUD_HXX_
 #define _SG_CLOUD_HXX_
 
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
+#include <simgear/compiler.h>
 
 #include <plib/ssg.h>
 
-#include <simgear/misc/fgpath.hxx>
+#include STL_STRING
+FG_USING_STD(string);
+
+
+#define SG_MAX_CLOUD_TYPES 4   // change this if we add/remove cloud
+                               // types en the enum below
+
+enum SGCloudType {
+    SG_CLOUD_OVERCAST = 0,
+    SG_CLOUD_MOSTLY_CLOUDY = 1,
+    SG_CLOUD_MOSTLY_SUNNY = 2,
+    SG_CLOUD_CIRRUS = 3,
+};
 
 
 class SGCloudLayer {
 
+private:
+
     ssgRoot *layer_root;
     ssgTransform *layer_transform;
     ssgSimpleState *layer_state;
@@ -62,8 +81,8 @@ public:
     ~SGCloudLayer( void );
 
     // build the cloud object
-    void build( FGPath path, double size, double asl, double thickness,
-               double transition );
+    void build( double size, double asl, double thickness,
+               double transition, ssgSimpleState *state );
 
     // repaint the cloud colors based on current value of sun_angle,
     // sky, and fog colors.  This updates the color arrays for
@@ -91,4 +110,8 @@ public:
 };
 
 
+// make an ssgSimpleState for a cloud layer given the named texture
+ssgSimpleState *SGCloudMakeState( const string &path );
+
+
 #endif // _SG_CLOUD_HXX_