Epok Engine

EPOK RUNTIME

epok::ParticlePool::advance

Function template · 2 overloads

Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.

Function template

Performs `advance` as part of bounded particle simulation and rendering.

Belongs to
epok::ParticlePool
Header
particles.hpp
Overloads
2

Declaration 1 of 2

template
Declaration
template<size_t N>void advance(std::array<ActorData,N>& objects,const std::array<Affine<Fixed>,N>& world,size_t count,Fixed dt)

Performs `advance` as part of bounded particle simulation and rendering.

ParameterTypeMeaning
objectsstd::array<ActorData, N> &Not documented; consult the linked header.
worldconst std::array<Affine<Fixed>, N> &Not documented; consult the linked header.
countsize_tNot documented; consult the linked header.
dtFixedNot documented; consult the linked header.

Returns: Nothing (void).

Example sketch

C++ example
#include "particles.hpp"

// Replace these template arguments with types or values accepted by the declaration:
// N

// Assume these named values have been initialized with valid data:
// std::array<ActorData, N> & objects
// const std::array<Affine<Fixed>, N> & world
// size_t count
// Fixed dt

epok::ParticlePool& object = /* obtain a valid instance */;

object.advance<N>(objects, world, count, dt);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/particles.hpp:71

Declaration 2 of 2

Declaration
void advance()

Performs `advance` as part of bounded particle simulation and rendering.

This overload takes no parameters.

Returns: Nothing (void).

Example sketch

C++ example
#include "particles.hpp"

epok::ParticlePool& object = /* obtain a valid instance */;

object.advance();

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/particles.hpp:44

Related members