Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

Duplicating ofParameterGroup (or ofParameter)

$
0
0

Greetings,

on a project I worked on recently:

https://github.com/ofZach/dayForNightSFPC

we had an issue where we kind of needed to make a duplicate of an ofParameterGroup. When you copy (ie, use the = operator) it's really a shared_ptr, so changes in the original change the copy. Is there any convenient way (without iterating through the parameter group, which is kind of what we wound up doing) to make a duplicate which isn't connected to the original ? I think what we were looking for is a sort of clone functionality....

thanks in advance!


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>