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

ofxGui add listener to vec3f

$
0
0

the problem is probably that the signature of the listener function is not correct. it needs to be:

void listenerFunction(ofVec3f & value)

specially note the & that indicates that the value is passed by reference instead of making a copy. in general in OF when adding a listener to any event you need to use a function that receives a reference to the type of the event or parameter


Viewing all articles
Browse latest Browse all 40524

Trending Articles



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