Hi,
I’ve been using addListener to call a function to update some values on my code.
Is there any way of calling the function declared in addListener(this,[FUNCTION]) without passing an argument to it?
ej:
void ofApp::UpdateMesh(){
pixs_to_mesh(gradient_pixels, 500, 500, resolution, &main_mesh);
}
Im getting the changing global variables anyways so i dont need to pass any argument to this function.
I need this because i have different types of “ofParameter” (int and float) calling the same function and of doesnt like it when i call a function with different declarations of type
ej:
void UpdateMesh(int &_value); void UpdateMesh(float &_value);
Thanks in advance!