82 bool EventProcess(
const Event& event);
87 void Create(
const std::string& fileName,
const Color& diffuse,
const Color& ambient,
float level);
138 std::vector<CloudLine> m_lines;
float px1
X (1, 2) and Z coordinates (world coordinates)
Definition: cloud.h:56
void SetEnabled(bool enable)
Management of clouds.
Definition: cloud.cpp:261
Color m_ambient
Ambient color.
Definition: cloud.h:126
Point struct and related functions.
short len
Length in X direction (terrain coordinates)
Definition: cloud.h:54
Cloud layer renderer.
Definition: cloud.h:76
Color m_diffuse
Diffuse color.
Definition: cloud.h:124
int m_brickCount
Brick mosaic.
Definition: cloud.h:134
Cloud strip.
Definition: cloud.h:47
Color structs and related functions.
short x
Beginning (terrain coordinates)
Definition: cloud.h:51
2D point
Definition: point.h:46
Terrain loader/generator and manager.
Definition: terrain.h:220
Vector struct and related functions.
The graphics engine.
Definition: engine.h:681
std::string m_fileName
Texture.
Definition: cloud.h:120
Event types, structs and event queue.
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:82
void Create(const std::string &fileName, const Color &diffuse, const Color &ambient, float level)
Creates all areas of cloud.
Definition: cloud.cpp:209
float m_brickSize
Size of a brick element.
Definition: cloud.h:136
void Flush()
Removes all the clouds.
Definition: cloud.cpp:244
bool EventFrame(const Event &event)
Makes the clouds evolve.
Definition: cloud.cpp:67
Math::Point m_speed
Feedrate (wind)
Definition: cloud.h:122
3D (3x1) vector
Definition: vector.h:49
void SetLevel(float level)
Management of cloud level.
Definition: cloud.cpp:249
void CreateLine(int x, int y, int len)
Updates the positions, relative to the ground.
Definition: cloud.cpp:192
Math::Vector m_wind
Wind speed.
Definition: cloud.h:132
RGBA color.
Definition: color.h:35
float m_level
Overall level.
Definition: cloud.h:118
Event sent by system, interface or game.
Definition: event.h:687
void Draw()
Draw the clouds.
Definition: cloud.cpp:98