From c6673b9aee483cfa64b49395c5c96b023bb09549 Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Sun, 9 Sep 2012 12:56:09 +0200 Subject: Texture format detection; minor fixes - detection of texture format - fixed depth mask bug - minor refactoring --- src/graphics/engine/cloud.h | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'src/graphics/engine/cloud.h') diff --git a/src/graphics/engine/cloud.h b/src/graphics/engine/cloud.h index 9822c24..a9109fa 100644 --- a/src/graphics/engine/cloud.h +++ b/src/graphics/engine/cloud.h @@ -79,29 +79,32 @@ public: CCloud(CInstanceManager* iMan, CEngine* engine); ~CCloud(); - bool EventProcess(const Event &event); + bool EventProcess(const Event& event); //! Removes all the clouds void Flush(); //! Creates all areas of cloud - void Create(const std::string& fileName, Gfx::Color diffuse, Gfx::Color ambient, float level); + void Create(const std::string& fileName, const Gfx::Color& diffuse, const Gfx::Color& ambient, float level); //! Draw the clouds void Draw(); - //! Modifies the cloud level + //! Management of cloud level + //@{ void SetLevel(float level); - //! Returns the current level of clouds float GetLevel(); + //@} - //! Activate management of clouds - void SetEnable(bool enable); - bool GetEnable(); + //! Management of clouds + //@{ + void SetEnabled(bool enable); + bool GetEnabled(); + //@} protected: //! Makes the clouds evolve bool EventFrame(const Event &event); //! Adjusts the position to normal, to imitate the clouds at movement - void AdjustLevel(Math::Vector &pos, Math::Vector &eye, float deep, - Math::Point &uv1, Math::Point &uv2); + void AdjustLevel(Math::Vector& pos, Math::Vector& eye, float deep, + Math::Point& uv1, Math::Point& uv2); //! Updates the positions, relative to the ground void CreateLine(int x, int y, int len); @@ -110,9 +113,11 @@ protected: Gfx::CEngine* m_engine; Gfx::CTerrain* m_terrain; - std::string m_fileName; + bool m_enabled; //! Overall level float m_level; + //! Texture + std::string m_fileName; //! Feedrate (wind) Math::Point m_speed; //! Diffuse color @@ -131,8 +136,6 @@ protected: float m_brickSize; std::vector m_lines; - - bool m_enable; }; -- cgit v1.2.3-1-g7c22