Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::ParticleAttractorUpdater Class Referencefinal

#include <ParticleAttractorUpdater.h>

+ Inheritance diagram for Divide::ParticleAttractorUpdater:

Public Member Functions

 ParticleAttractorUpdater (PlatformContext &context) noexcept
 
void update (U64 deltaTimeUS, ParticleData &p) override
 
size_t collectionSize () const noexcept
 
void add (const vec4< F32 > &attractor)
 
vec4< F32 > & get (const U32 id)
 
- Public Member Functions inherited from Divide::ParticleUpdater
 ParticleUpdater (PlatformContext &context) noexcept
 
virtual void update (U64 deltaTimeUS, ParticleData &p)=0
 
- Public Member Functions inherited from Divide::PlatformContextComponent
 PlatformContextComponent (PlatformContext &context) noexcept
 
virtual ~PlatformContextComponent ()=default
 
PlatformContextcontext () noexcept
 
const PlatformContextcontext () const noexcept
 
- Public Member Functions inherited from Divide::NonCopyable
 NonCopyable (const NonCopyable &)=delete
 
NonCopyableoperator= (const NonCopyable &)=delete
 
 NonCopyable (NonCopyable &&)=default
 
NonCopyableoperator= (NonCopyable &&)=default
 

Public Attributes

vector< vec4< F32 > > _attractors
 w = force
 

Additional Inherited Members

- Protected Member Functions inherited from Divide::NonCopyable
 NonCopyable ()=default
 
 ~NonCopyable ()=default
 
- Protected Attributes inherited from Divide::PlatformContextComponent
PlatformContext_context
 

Detailed Description

Definition at line 40 of file ParticleAttractorUpdater.h.

Constructor & Destructor Documentation

◆ ParticleAttractorUpdater()

Divide::ParticleAttractorUpdater::ParticleAttractorUpdater ( PlatformContext context)
inlinenoexcept

Definition at line 46 of file ParticleAttractorUpdater.h.

Member Function Documentation

◆ add()

void Divide::ParticleAttractorUpdater::add ( const vec4< F32 > &  attractor)
inline

Definition at line 53 of file ParticleAttractorUpdater.h.

◆ collectionSize()

size_t Divide::ParticleAttractorUpdater::collectionSize ( ) const
inlinenoexcept

Definition at line 52 of file ParticleAttractorUpdater.h.

◆ get()

vec4< F32 > & Divide::ParticleAttractorUpdater::get ( const U32  id)
inline

Definition at line 54 of file ParticleAttractorUpdater.h.

◆ update()

void Divide::ParticleAttractorUpdater::update ( U64  deltaTimeUS,
ParticleData p 
)
overridevirtual

Implements Divide::ParticleUpdater.

Definition at line 7 of file ParticleAttractorUpdater.cpp.

Member Data Documentation

◆ _attractors

vector<vec4<F32> > Divide::ParticleAttractorUpdater::_attractors

w = force

Definition at line 43 of file ParticleAttractorUpdater.h.


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