84 bool EventProcess(
const Event& event);
89 void Create(
const std::string& fileName,
const Color& diffuse,
const Color& ambient,
float level);
140 std::vector<CloudLine> m_lines;
float px1
X (1, 2) and Z coordinates (world coordinates)
Definition: cloud.h:58
void SetEnabled(bool enable)
Management of clouds.
Definition: cloud.cpp:263
Color m_ambient
Ambient color.
Definition: cloud.h:128
Point struct and related functions.
short len
Length in X direction (terrain coordinates)
Definition: cloud.h:56
Cloud layer renderer.
Definition: cloud.h:78
Color m_diffuse
Diffuse color.
Definition: cloud.h:126
int m_brickCount
Brick mosaic.
Definition: cloud.h:136
Cloud strip.
Definition: cloud.h:49
Color structs and related functions.
short x
Beginning (terrain coordinates)
Definition: cloud.h:53
2D point
Definition: point.h:49
Terrain loader/generator and manager.
Definition: terrain.h:222
Namespace for (new) graphics code.
Definition: app.h:49
Vector struct and related functions.
The graphics engine.
Definition: engine.h:684
std::string m_fileName
Texture.
Definition: cloud.h:122
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:84
void Create(const std::string &fileName, const Color &diffuse, const Color &ambient, float level)
Creates all areas of cloud.
Definition: cloud.cpp:211
float m_brickSize
Size of a brick element.
Definition: cloud.h:138
void Flush()
Removes all the clouds.
Definition: cloud.cpp:246
bool EventFrame(const Event &event)
Makes the clouds evolve.
Definition: cloud.cpp:69
Math::Point m_speed
Feedrate (wind)
Definition: cloud.h:124
3D (3x1) vector
Definition: vector.h:52
void SetLevel(float level)
Management of cloud level.
Definition: cloud.cpp:251
void CreateLine(int x, int y, int len)
Updates the positions, relative to the ground.
Definition: cloud.cpp:194
Math::Vector m_wind
Wind speed.
Definition: cloud.h:134
RGBA color.
Definition: color.h:38
float m_level
Overall level.
Definition: cloud.h:120
Event sent by system, interface or game.
Definition: event.h:678
void Draw()
Draw the clouds.
Definition: cloud.cpp:100