Sorry for bumping this super old post up, I have a similar question and figured this is better than starting a completely new topic. I understand the static and F_CALLBACK part, still hope to know hot to pass parameters into the callback function. There’s nowhere in the setCallback function to pass in a void* for the callback function’s parameters argument.
You would want to use setUserData() for this, it allows you to pass arbitrary data as void* that will be sent back everytime a callback is triggered (on the instance you called setUserData() on)