allegroflare / allegro_flare

Application toolkit for Allegro 5
https://clubcatt.com/allegroflare
MIT License
35 stars 6 forks source link

Add Missing "create_path_from_interpolator" Function #190

Open MarkOates opened 2 years ago

MarkOates commented 2 years ago

This function declaration used to exist in allegro_flare/render_path2d.h:

path2d create_path_from_interpolator(interpolator::interpolator_func_t func, int num_segments=16);

However, there does not appear to ever have been a definition. The method might be useful in the future, however, there's not an immediate or expected use for it right now.

MarkOates commented 2 years ago

This has bumped up a bit in priority. I can see an upcoming scenario where this feature might be needed - rendering interpolator paths for automation controls comes to mind. However, I think it should be in an isolated object, like a Path2DFromInterpolator or something.