60 bool EventProcess(
const Event& event);
65 void Create(
const std::string& fileName,
const Color& diffuse,
const Color& ambient,
float level);
94 bool m_enabled =
true;
106 float m_lastTest = 0.0f;
129 float px1 = 0, px2 = 0, pz = 0;
131 std::vector<CloudLine> m_lines;
Color m_ambient
Ambient color.
Definition: cloud.h:104
Point struct and related functions.
float px1
X (1, 2) and Z coordinates (world coordinates)
Definition: cloud.h:129
Cloud layer renderer.
Definition: cloud.h:54
Color m_diffuse
Diffuse color.
Definition: cloud.h:102
int m_brickCount
Brick mosaic.
Definition: cloud.h:112
Color structs and related functions.
2D point
Definition: point.h:50
Terrain loader/generator and manager.
Definition: terrain.h:147
Namespace for (new) graphics code.
Definition: app.h:49
Vector struct and related functions.
The graphics engine.
Definition: engine.h:585
std::string m_fileName
Texture.
Definition: cloud.h:98
void AdjustLevel(Math::Vector &pos, Math::Vector &eye, float deep, Math::Point &uv1, Math::Point &uv2)
Adjusts the position to normal, to imitate the clouds at movement.
Definition: cloud.cpp:79
Cloud strip.
Definition: cloud.h:120
void Create(const std::string &fileName, const Color &diffuse, const Color &ambient, float level)
Creates all areas of cloud.
Definition: cloud.cpp:206
float m_brickSize
Size of a brick element.
Definition: cloud.h:114
void Flush()
Removes all the clouds.
Definition: cloud.cpp:241
bool EventFrame(const Event &event)
Makes the clouds evolve.
Definition: cloud.cpp:64
Math::Point m_speed
Feedrate (wind)
Definition: cloud.h:100
3D (3x1) vector
Definition: vector.h:53
void SetLevel(float level)
Management of cloud level.
Definition: cloud.cpp:246
void CreateLine(int x, int y, int len)
Updates the positions, relative to the ground.
Definition: cloud.cpp:189
Math::Vector m_wind
Wind speed.
Definition: cloud.h:110
RGBA color.
Definition: color.h:39
float m_level
Overall level.
Definition: cloud.h:96
Event sent by system, interface or game.
Definition: event.h:735
void Draw()
Draw the clouds.
Definition: cloud.cpp:95
void SetEnabled(bool enabled)
Management of clouds.
Definition: cloud.cpp:258