#include <particles.h>
◆ Particle()
References m_acceleration, m_animation, m_base_color, m_collision_removal, m_collisionbox, m_collisiondetection, m_color, m_env, m_expiration, m_gamedef, m_glow, m_material, m_object_collision, m_player, m_pos, m_size, m_texpos, m_texsize, m_velocity, m_vertical, p(), updateLight(), and updateVertices().
◆ ~Particle()
◆ get_expired()
bool Particle::get_expired |
( |
| ) |
|
|
inline |
◆ getBoundingBox()
virtual const aabb3f& Particle::getBoundingBox |
( |
| ) |
const |
|
inlinevirtual |
◆ getMaterial()
virtual video::SMaterial& Particle::getMaterial |
( |
u32 |
i | ) |
|
|
inlinevirtual |
◆ getMaterialCount()
virtual u32 Particle::getMaterialCount |
( |
| ) |
const |
|
inlinevirtual |
◆ OnRegisterSceneNode()
void Particle::OnRegisterSceneNode |
( |
| ) |
|
|
virtual |
◆ render()
void Particle::render |
( |
| ) |
|
|
virtual |
◆ step()
void Particle::step |
( |
float |
dtime | ) |
|
References BS, collisionMoveResult::collides, collisionMoveSimple(), TileAnimationParams::determineParams(), m_acceleration, m_animation, m_animation_frame, m_animation_time, m_collision_removal, m_collisionbox, m_collisiondetection, m_env, m_expiration, m_gamedef, m_material, m_object_collision, m_pos, m_time, m_velocity, TAT_NONE, TileAnimationParams::type, updateLight(), and updateVertices().
◆ updateLight()
void Particle::updateLight |
( |
| ) |
|
|
private |
References blend_light(), decode_light(), ClientEnvironment::getClientMap(), Environment::getDayNightRatio(), MapNode::getLightBlend(), Map::getNode(), LIGHT_SUN, m_base_color, m_color, m_env, m_gamedef, m_glow, m_pos, IGameDef::ndef(), and p().
Referenced by Particle(), and step().
◆ updateVertices()
void Particle::updateVertices |
( |
| ) |
|
|
private |
References BS, TileAnimationParams::determineParams(), ClientEnvironment::getCameraOffset(), LocalPlayer::getPitch(), LocalPlayer::getPosition(), TileAnimationParams::getTextureCoords(), LocalPlayer::getYaw(), intToFloat(), m_animation, m_animation_frame, m_box, m_color, m_env, m_material, m_player, m_pos, m_size, m_texpos, m_texsize, m_vertical, m_vertices, TAT_NONE, and TileAnimationParams::type.
Referenced by Particle(), and step().
◆ m_acceleration
v3f Particle::m_acceleration |
|
private |
◆ m_animation
◆ m_animation_frame
int Particle::m_animation_frame = 0 |
|
private |
◆ m_animation_time
float Particle::m_animation_time = 0.0f |
|
private |
◆ m_base_color
video::SColor Particle::m_base_color |
|
private |
◆ m_box
◆ m_camera_offset
v3s16 Particle::m_camera_offset |
|
private |
◆ m_collision_removal
bool Particle::m_collision_removal |
|
private |
◆ m_collisionbox
aabb3f Particle::m_collisionbox |
|
private |
◆ m_collisiondetection
bool Particle::m_collisiondetection |
|
private |
◆ m_color
video::SColor Particle::m_color |
|
private |
◆ m_env
◆ m_expiration
float Particle::m_expiration |
|
private |
◆ m_gamedef
◆ m_glow
◆ m_material
video::SMaterial Particle::m_material |
|
private |
◆ m_object_collision
bool Particle::m_object_collision |
|
private |
◆ m_player
◆ m_pos
◆ m_size
◆ m_texpos
◆ m_texsize
◆ m_time
float Particle::m_time = 0.0f |
|
private |
◆ m_velocity
◆ m_vertical
bool Particle::m_vertical |
|
private |
◆ m_vertices
video::S3DVertex Particle::m_vertices[4] |
|
private |
The documentation for this class was generated from the following files: