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.
void Gfx::CCloud::Flush |
( |
| ) |
|
void Gfx::CCloud::Create |
( |
const std::string & |
fileName, |
|
|
const Color & |
diffuse, |
|
|
const Color & |
ambient, |
|
|
float |
level |
|
) |
| |
Creates all areas of cloud.
void Gfx::CCloud::Draw |
( |
| ) |
|
void Gfx::CCloud::SetLevel |
( |
float |
level | ) |
|
Management of cloud level.
void Gfx::CCloud::SetEnabled |
( |
bool |
enabled | ) |
|
bool Gfx::CCloud::EventFrame |
( |
const Event & |
event | ) |
|
|
protected |
Adjusts the position to normal, to imitate the clouds at movement.
void Gfx::CCloud::CreateLine |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
len |
|
) |
| |
|
protected |
Updates the positions, relative to the ground.
float Gfx::CCloud::m_level = 0.0f |
|
protected |
std::string Gfx::CCloud::m_fileName |
|
protected |
Color Gfx::CCloud::m_diffuse |
|
protected |
Color Gfx::CCloud::m_ambient |
|
protected |
int Gfx::CCloud::m_brickCount = 0 |
|
protected |
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