friz
An animation control system for JUCE
Loading...
Searching...
No Matches
friz::UpdateSource< ValueCount > Class Template Reference
Inheritance diagram for friz::UpdateSource< ValueCount >:

Public Types

using ValueList = std::array< float, ValueCount >
 
using UpdateFn = std::function< void(int, const ValueList &)>
 

Public Member Functions

void onUpdate (UpdateFn update)
 

Public Attributes

UpdateFn updateFn
 

Member Function Documentation

◆ onUpdate()

template<std::size_t ValueCount>
void friz::UpdateSource< ValueCount >::onUpdate ( UpdateFn  update)
inline

Set the function that will be called with an array of animation values once per frame. updateFn is public, so you can also just assign to it directly.

Parameters
updateUpdateFn function.

Member Data Documentation

◆ updateFn

template<std::size_t ValueCount>
UpdateFn friz::UpdateSource< ValueCount >::updateFn

function to call on each frame. Pass in std::array of new values, return true if all is okay, false to cancel this animation.


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