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

How to add one callback for multiple ofParameters?

$
0
0

@ricardomatias wrote:

In setup(), such as:

MAX_DEPTH and MAX_DRAW are 2 ofParameter of int and float.

    MAX_DEPTH.newListener([this](int &v) { drawAlgo(); });
    MAX_DRAW.newListener([this](float &v) { drawAlgo(); });

But these never get called.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles