#include <clouds.h>
◆ Clouds()
Clouds::Clouds |
( |
scene::ISceneManager * |
mgr, |
|
|
s32 |
id, |
|
|
u32 |
seed |
|
) |
| |
References cloud_3d_setting_changed(), CloudParams::color_ambient, CloudParams::color_bright, CloudParams::density, g_settings, CloudParams::height, m_material, m_params, readSettings(), Settings::registerChangedCallback(), CloudParams::speed, CloudParams::thickness, and updateBox().
◆ ~Clouds()
◆ getBoundingBox()
virtual const aabb3f& Clouds::getBoundingBox |
( |
| ) |
const |
|
inlinevirtual |
◆ getColor()
const video::SColor Clouds::getColor |
( |
| ) |
const |
|
inline |
◆ getMaterial()
virtual video::SMaterial& Clouds::getMaterial |
( |
u32 |
i | ) |
|
|
inlinevirtual |
◆ getMaterialCount()
virtual u32 Clouds::getMaterialCount |
( |
| ) |
const |
|
inlinevirtual |
◆ gridFilled()
bool Clouds::gridFilled |
( |
int |
x, |
|
|
int |
y |
|
) |
| const |
|
private |
◆ isCameraInsideCloud()
bool Clouds::isCameraInsideCloud |
( |
| ) |
const |
|
inline |
◆ OnRegisterSceneNode()
void Clouds::OnRegisterSceneNode |
( |
| ) |
|
|
virtual |
◆ readSettings()
void Clouds::readSettings |
( |
| ) |
|
◆ render()
References BS, cloud_size, CloudParams::density, g_profiler, GETINDEX, gridFilled(), CloudParams::height, INAREA, intToFloat(), m_camera_offset, m_camera_pos, m_cloud_radius_i, m_color, m_enable_3d, m_material, m_origin, m_params, SPT_AVG, and CloudParams::thickness.
Referenced by RenderingEngine::_draw_load_screen(), RenderingEngine::_draw_menu_scene(), and GUIEngine::cloudPreProcess().
◆ setColorAmbient()
void Clouds::setColorAmbient |
( |
const video::SColor & |
color_ambient | ) |
|
|
inline |
◆ setColorBright()
void Clouds::setColorBright |
( |
const video::SColor & |
color_bright | ) |
|
|
inline |
◆ setDensity()
void Clouds::setDensity |
( |
float |
density | ) |
|
|
inline |
◆ setHeight()
void Clouds::setHeight |
( |
float |
height | ) |
|
|
inline |
◆ setSpeed()
void Clouds::setSpeed |
( |
v2f |
speed | ) |
|
|
inline |
◆ setThickness()
void Clouds::setThickness |
( |
float |
thickness | ) |
|
|
inline |
◆ step()
void Clouds::step |
( |
float |
dtime | ) |
|
◆ update()
void Clouds::update |
( |
const v3f & |
camera_p, |
|
|
const video::SColorf & |
color |
|
) |
| |
References cloud_size, CloudParams::color_ambient, CloudParams::color_bright, gridFilled(), m_box, m_camera_inside_cloud, m_camera_pos, m_color, m_enable_3d, m_origin, and m_params.
Referenced by GUIEngine::cloudInit(), ClientLauncher::run(), and Game::updateFrame().
◆ updateBox()
void Clouds::updateBox |
( |
| ) |
|
|
inlineprivate |
◆ updateCameraOffset()
void Clouds::updateCameraOffset |
( |
const v3s16 & |
camera_offset | ) |
|
|
inline |
◆ m_box
◆ m_camera_inside_cloud
bool Clouds::m_camera_inside_cloud = false |
|
private |
◆ m_camera_offset
v3s16 Clouds::m_camera_offset |
|
private |
◆ m_camera_pos
◆ m_cloud_radius_i
u16 Clouds::m_cloud_radius_i |
|
private |
◆ m_color
video::SColorf Clouds::m_color = video::SColorf(1.0f, 1.0f, 1.0f, 1.0f) |
|
private |
◆ m_enable_3d
◆ m_material
video::SMaterial Clouds::m_material |
|
private |
◆ m_origin
◆ m_params
Referenced by Clouds(), gridFilled(), render(), setColorAmbient(), setColorBright(), setDensity(), setHeight(), setSpeed(), setThickness(), step(), update(), and updateBox().
◆ m_seed
The documentation for this class was generated from the following files: