Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Listen to ofParameter in B class from A class

$
0
0

@Gallo wrote:

Hello,

I have class B in which i have an ofParameter (used as ofxGui toggle button)
From class A i would like to listen for the class B parameter change.

B_Object.theParameter.addListener(&B_Object, &ofApp::onEventFunction);

It throws an error on compilation :

 no Matching function for call to ofAddListener

Posts: 8

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles