Quantcast
Viewing all articles
Browse latest Browse all 40524

ofxGui add listener to vec3f

Is there a way to add listener to a vec3fSlider?

in my .h file I have

ofxVec3Slider camPositionGui;

and in my .cpp

gui.add(camPositionGui.setup("Position vec3", camPosition, ofVec3f(-1000, -1000, -1000), ofVec3f(1000,1000,1000)));

but I cannot use this function

camPositionGui.addListener(this, &ofApp::camPositionGuiChanged);

It has not been implemented, but I wonder if there is a reason why? I can of course use single sliders but the vec3f slider is quick and neat for this kind of thing.

Fred


Viewing all articles
Browse latest Browse all 40524

Trending Articles



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