Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | Protected Attributes | List of all members
castor3d::ParticleUpdater Class Reference

#include <ParticleUpdater.hpp>

Collaboration diagram for castor3d::ParticleUpdater:
Collaboration graph
[legend]

Public Member Functions

C3D_API ParticleUpdater (ParticleSystem const &system, ParticleDeclaration const &inputs, ParticleEmitterArray &emitters)
 
virtual C3D_API ~ParticleUpdater () noexcept=default
 
virtual C3D_API void update (castor::Milliseconds const &time, Particle &particle)
 Updates a particle.
 

Protected Attributes

ParticleSystem const & m_system
 
ParticleDeclaration const & m_inputs
 
ParticleEmitterArray & m_emitters
 

Constructor & Destructor Documentation

◆ ParticleUpdater()

C3D_API castor3d::ParticleUpdater::ParticleUpdater ( ParticleSystem const & system,
ParticleDeclaration const & inputs,
ParticleEmitterArray & emitters )

◆ ~ParticleUpdater()

virtual C3D_API castor3d::ParticleUpdater::~ParticleUpdater ( )
virtualdefaultnoexcept

Member Function Documentation

◆ update()

virtual C3D_API void castor3d::ParticleUpdater::update ( castor::Milliseconds const & time,
Particle & particle )
virtual

Updates a particle.

Parameters
[in]timeThe time elapsed since last update.
[in]particleThe particle.

Member Data Documentation

◆ m_emitters

ParticleEmitterArray& castor3d::ParticleUpdater::m_emitters
protected

◆ m_inputs

ParticleDeclaration const& castor3d::ParticleUpdater::m_inputs
protected

◆ m_system

ParticleSystem const& castor3d::ParticleUpdater::m_system
protected

The documentation for this class was generated from the following file: