nw::EffectArray

struct EffectArray

Public Types

using storage = Vector<EffectHandle>
using iterator = storage::iterator
using const_iterator = storage::const_iterator

Public Functions

EffectArray(nw::MemoryResource *allocator = nw::kernel::global_allocator())
bool add(Effect *effect)

Adds an effect.

iterator begin()
const_iterator begin() const
iterator end()
const_iterator end() const
void erase(iterator first, iterator last)

Removes a range of effects.

bool remove(Effect *effect)

Removes an effect.

size_t size() const noexcept

Gets the number of applied effects.