OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::Particle2D Struct Reference

#include <Particle2D.hpp>

Public Member Functions

SIV3D_NODISCARD_CXX20 Particle2D ()=default
 
SIV3D_NODISCARD_CXX20 Particle2D (const Emission2D &emission, const Float4 &_startColor, float _startSize, float _rotation, float _startAngularVelocity, float _startLifeTime, float _remainingLifeTime) noexcept
 
void update (float deltaTime, const Float2 &deltaVelocity) noexcept
 
void advance (float deltaTime, const Float2 &deltaVelocity) noexcept
 
bool isDead () const noexcept
 

Public Attributes

Float2 position
 
Float2 velocity
 
Float4 startColor
 
float startSize
 
float rotation
 
float startAngularVelocity
 
float startLifeTime
 
float remainingLifeTime
 

Constructor & Destructor Documentation

◆ Particle2D() [1/2]

SIV3D_NODISCARD_CXX20 s3d::Particle2D::Particle2D ( )
default

◆ Particle2D() [2/2]

SIV3D_NODISCARD_CXX20 s3d::Particle2D::Particle2D ( const Emission2D emission,
const Float4 _startColor,
float  _startSize,
float  _rotation,
float  _startAngularVelocity,
float  _startLifeTime,
float  _remainingLifeTime 
)
noexcept

Member Function Documentation

◆ advance()

void s3d::Particle2D::advance ( float  deltaTime,
const Float2 deltaVelocity 
)
noexcept

◆ isDead()

bool s3d::Particle2D::isDead ( ) const
noexcept

◆ update()

void s3d::Particle2D::update ( float  deltaTime,
const Float2 deltaVelocity 
)
noexcept

Member Data Documentation

◆ position

Float2 s3d::Particle2D::position

◆ remainingLifeTime

float s3d::Particle2D::remainingLifeTime

◆ rotation

float s3d::Particle2D::rotation

◆ startAngularVelocity

float s3d::Particle2D::startAngularVelocity

◆ startColor

Float4 s3d::Particle2D::startColor

◆ startLifeTime

float s3d::Particle2D::startLifeTime

◆ startSize

float s3d::Particle2D::startSize

◆ velocity

Float2 s3d::Particle2D::velocity

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