Is your feature request related to a problem?
Right now the callbacks only support a function proc (or non-capturing lambda) on the callback. When you need more context (e.g., an object pointer or reference) you are currently forced to have this information come from globals. This makes things very cumbersome in some circumstances, if not impossible to work around.
Describe the solution you'd like?
A replacement and/or addition of some form of Callable (e.g., std::function<>) for the callbacks in the library.
Describe alternatives you've considered
No response
Additional context
No response
Is your feature request related to a problem?
Right now the callbacks only support a function proc (or non-capturing lambda) on the callback. When you need more context (e.g., an object pointer or reference) you are currently forced to have this information come from globals. This makes things very cumbersome in some circumstances, if not impossible to work around.
Describe the solution you'd like?
A replacement and/or addition of some form of Callable (e.g.,
std::function<>) for the callbacks in the library.Describe alternatives you've considered
No response
Additional context
No response