Duckcpp 2.1.0
Duckcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
dcpp::scene::IParticleFadeOutAffector Class Referenceabstract

A particle affector which fades out the particles. More...

#include <duckcpp/core/engine/IParticleFadeOutAffector.hpp>

Inheritance diagram for dcpp::scene::IParticleFadeOutAffector:
Inheritance graph
Collaboration diagram for dcpp::scene::IParticleFadeOutAffector:
Collaboration graph

Public Member Functions

virtual void setTargetColor (const dcpp::video::SColor &targetColor)=0
 Sets the targetColor, i.e. the color the particles will interpolate to over time.
 
virtual void setFadeOutTime (dcpp::uint32_kt fadeOutTime)=0
 Sets the time in milliseconds it takes for each particle to fade out (minimal 1 ms)
 
virtual const dcpp::video::SColorgetTargetColor () const =0
 Gets the targetColor, i.e. the color the particles will interpolate to over time.
 
virtual dcpp::uint32_kt getFadeOutTime () const =0
 Gets the time in milliseconds it takes for each particle to fade out.
 
virtual E_PARTICLE_AFFECTOR_TYPE getType () const override
 Get emitter type.
 
- Public Member Functions inherited from dcpp::scene::IParticleAffector
 IParticleAffector ()
 constructor
 
virtual void affect (dcpp::uint32_kt now, SParticle *particlearray, dcpp::uint32_kt count)=0
 Affects an array of particles.
 
virtual void setEnabled (bool enabled)
 Sets whether or not the affector is currently enabled.
 
virtual bool getEnabled () const
 Gets whether or not the affector is currently enabled.
 
- Public Member Functions inherited from dcpp::io::IAttributeExchangingObject
virtual void serializeAttributes (dcpp::io::IAttributes *out, dcpp::io::SAttributeReadWriteOptions *options=0) const
 Writes attributes of the object.
 
virtual void deserializeAttributes (dcpp::io::IAttributes *in, dcpp::io::SAttributeReadWriteOptions *options=0)
 Reads attributes of the object.
 
- Public Member Functions inherited from dcpp::IReferenceCounted
 IReferenceCounted ()
 Constructor.
 
virtual ~IReferenceCounted ()
 Destructor.
 
void grab () const
 Grabs the object. Increments the reference counter by one.
 
bool drop () const
 Drops the object. Decrements the reference counter by one.
 
dcpp::int32_kt getReferenceCount () const
 Get the reference count.
 
const dcpp::char_ktgetDebugName () const
 Returns the debug name of the object.
 

Additional Inherited Members

- Protected Member Functions inherited from dcpp::IReferenceCounted
void setDebugName (const dcpp::char_kt *newName)
 Sets the debug name of the object.
 
- Protected Attributes inherited from dcpp::scene::IParticleAffector
bool Enabled
 

Detailed Description

A particle affector which fades out the particles.

Member Function Documentation

◆ getType()

virtual E_PARTICLE_AFFECTOR_TYPE dcpp::scene::IParticleFadeOutAffector::getType ( ) const
inlineoverridevirtual

Get emitter type.

Implements dcpp::scene::IParticleAffector.


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

Duckcpp    @cppfx.xyz