I'm using a SDK for a usb camera. The SDK specifies that for each frame grabbed, a callback function will be called. The callback function is defined inside the SDK, it gets a data pointer to the image and a structure used to interpret the data.
All of that works correctly.
To make a useful application out of that, I need to access a few variables from my application. Now because the delegate function is static, I can only access static members. I thought of making a singleton out of them because its gonna be static, but is there any "conventionnal way" of accessing other data inside a delegate function?