summaryrefslogtreecommitdiffstats
path: root/src/graphics/engine/cloud.h
diff options
context:
space:
mode:
authorMichał Konopacki <konopacki.m@gmail.com>2012-08-13 21:23:20 +0200
committerMichał Konopacki <konopacki.m@gmail.com>2012-08-13 21:23:20 +0200
commit9ee1d2e172162be25b113595ad16779aa0a49a87 (patch)
tree5036de076ff1cf804bacfc866c2a8f04dc6c66f8 /src/graphics/engine/cloud.h
parentdc3cadd309a1ac1eb4921de69fed6037881b0b91 (diff)
parenta2dd39960b5851f8e62adf59b11b36ba14626468 (diff)
downloadcolobot-9ee1d2e172162be25b113595ad16779aa0a49a87.tar.gz
colobot-9ee1d2e172162be25b113595ad16779aa0a49a87.tar.bz2
colobot-9ee1d2e172162be25b113595ad16779aa0a49a87.zip
Merge remote-tracking branch 'upstream/dev-graphics' into dev-ui
Diffstat (limited to 'src/graphics/engine/cloud.h')
-rw-r--r--src/graphics/engine/cloud.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/graphics/engine/cloud.h b/src/graphics/engine/cloud.h
index 079f77b..abfaf26 100644
--- a/src/graphics/engine/cloud.h
+++ b/src/graphics/engine/cloud.h
@@ -40,12 +40,19 @@ namespace Gfx {
class CEngine;
class CTerrain;
+/**
+ * \struct CloudLine
+ * \brief Cloud strip
+ */
struct CloudLine
{
- //! Beginning
+ //@{
+ //! Beginning (terrain coordinates)
short x, y;
- //! In length x
+ //@}
+ //! Length in X direction (terrain coordinates)
short len;
+ //! X (1, 2) and Z coordinates (world coordinates)
float px1, px2, pz;
CloudLine()
@@ -57,6 +64,15 @@ struct CloudLine
};
+/**
+ * \class CCloud
+ * \brief Cloud layer renderer
+ *
+ * Renders the cloud layer as fog. Cloud layer is similar to water layer
+ * - it occurs only at specified level of terrain. Cloud map is created
+ * the same way water is created. CloudLine structs are used to specify
+ * lines in X direction in XY terrain coordinates.
+ */
class CCloud
{
public: