MLX42 1.0
MLX42
|
#include <MLX42_Int.h>
Data Fields | |
void * | param |
mlx_scrollfunc | func |
There are 2 types of hooks, special and generics.
Specials: Specials are specific callback functions to a specific action such as window resizing or key presses. These are attached to the callbacks of glfw. In case MLX itself needs the callback we call the specials in that callback since there can only ever be a single callback.
Generics: Generics are MLX42 specific hooks and can have multiple hooks at the same time, these are executed every frame and can be used as an alternative for keypresses or animations for instance.
NOTE: Hooks could be achieved with va_args to have any amount of args sized functor but we can't/don't want to let the user deal with va_args and having to look up what args are what, etc...
We want to keep it straightforward with functors already describing what params they have.
Definition at line 114 of file MLX42_Int.h.
mlx_scrollfunc mlx_srcoll::func |
Definition at line 117 of file MLX42_Int.h.
void* mlx_srcoll::param |
Definition at line 116 of file MLX42_Int.h.