rive-app / rive-cpp-legacy

C++ runtime for Rive
MIT License
287 stars 43 forks source link

Put input instances into std::vector #266

Closed mikerreed closed 2 years ago

mikerreed commented 2 years ago

Small initial change:

Larger refactor:

More canonical would be to store a std::vector< std::unique_ptr<...>>, but we pass around the span in tons of places, and it is awkward to have to have all those sites know about unique_ptr aspect inside our array, so for now we manually delete them in our destructor. If there were a way to convert array into array, that would be awesome.