Cloud layer renderer.
More...
#include <src/graphics/engine/cloud.h>
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.
§ Flush()
void Gfx::CCloud::Flush |
( |
| ) |
|
§ Create()
void Gfx::CCloud::Create |
( |
const std::string & |
fileName, |
|
|
const Color & |
diffuse, |
|
|
const Color & |
ambient, |
|
|
float |
level |
|
) |
| |
Creates all areas of cloud.
§ Draw()
void Gfx::CCloud::Draw |
( |
| ) |
|
§ SetLevel()
void Gfx::CCloud::SetLevel |
( |
float |
level | ) |
|
Management of cloud level.
§ SetEnabled()
void Gfx::CCloud::SetEnabled |
( |
bool |
enabled | ) |
|
§ EventFrame()
bool Gfx::CCloud::EventFrame |
( |
const Event & |
event | ) |
|
|
protected |
§ AdjustLevel()
Adjusts the position to normal, to imitate the clouds at movement.
§ CreateLine()
void Gfx::CCloud::CreateLine |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
len |
|
) |
| |
|
protected |
Updates the positions, relative to the ground.
§ m_level
float Gfx::CCloud::m_level = 0.0f |
|
protected |
§ m_fileName
std::string Gfx::CCloud::m_fileName |
|
protected |
§ m_speed
§ m_diffuse
Color Gfx::CCloud::m_diffuse |
|
protected |
§ m_ambient
Color Gfx::CCloud::m_ambient |
|
protected |
§ m_wind
§ m_brickCount
int Gfx::CCloud::m_brickCount = 0 |
|
protected |
§ m_brickSize
float Gfx::CCloud::m_brickSize = 0 |
|
protected |
The documentation for this class was generated from the following files:
- src/graphics/engine/cloud.h
- src/graphics/engine/cloud.cpp