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

#include <Particle.hpp>

Public Member Functions

C3D_API Particle (Particle const &rhs)
 
C3D_API Particle (Particle &&rhs) noexcept
 
C3D_API Particleoperator= (Particle const &rhs)
 
C3D_API Particleoperator= (Particle &&rhs) noexcept
 
C3D_API ~Particle () noexcept=default
 
C3D_API Particle (ParticleDeclaration const &description, castor::StrStrMap const &defaultValues)
 Constructor.
 
C3D_API Particle (ParticleDeclaration const &description)
 Constructor.
 
template<ParticleFormat Type>
void setValue (uint32_t index, typename ElementTyper< Type >::Type const &value)
 Sets the particle variable's value at given index.
 
template<ParticleFormat Type>
ElementTyper< Type >::Type getValue (uint32_t index) const
 Sets the particle variable's value at given index.
 
uint8_t const * getData () const
 
uint8_t * getData ()
 

Constructor & Destructor Documentation

◆ Particle() [1/4]

C3D_API castor3d::Particle::Particle ( Particle const & rhs)

◆ Particle() [2/4]

C3D_API castor3d::Particle::Particle ( Particle && rhs)
noexcept

◆ ~Particle()

C3D_API castor3d::Particle::~Particle ( )
defaultnoexcept

◆ Particle() [3/4]

C3D_API castor3d::Particle::Particle ( ParticleDeclaration const & description,
castor::StrStrMap const & defaultValues )

Constructor.

Parameters
[in]descriptionThe particle's elements description.
[in]defaultValuesThe default values for the particle's elements.

◆ Particle() [4/4]

C3D_API castor3d::Particle::Particle ( ParticleDeclaration const & description)
explicit

Constructor.

Parameters
[in]descriptionThe particle's elements description.

Member Function Documentation

◆ getData() [1/2]

uint8_t * castor3d::Particle::getData ( )
inline
Returns
The particle data.

◆ getData() [2/2]

uint8_t const * castor3d::Particle::getData ( ) const
inline
Returns
The particle data.

◆ getValue()

template<ParticleFormat Type>
ElementTyper< Type >::Type castor3d::Particle::getValue ( uint32_t index) const

Sets the particle variable's value at given index.

Parameters
[in]indexThe variable index.
Returns
The variable value.

◆ operator=() [1/2]

C3D_API Particle & castor3d::Particle::operator= ( Particle && rhs)
noexcept

◆ operator=() [2/2]

C3D_API Particle & castor3d::Particle::operator= ( Particle const & rhs)

◆ setValue()

template<ParticleFormat Type>
void castor3d::Particle::setValue ( uint32_t index,
typename ElementTyper< Type >::Type const & value )

Sets the particle variable's value at given index.

Parameters
[in]indexThe variable index.
[in]valueThe variable value.

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