title: What is the best way to pass parameters to a callback function? (C/C++)
body: <p>I'm learning SDL right now and I'm trying to use timer callback function.</p>
  <p>The function SDL_AddTimer() offer me only one argument to pass through but I want to pass different types of variables into it.
  (<a href="https://wiki.libsdl.org/SDL_AddTimer" rel="nofollow noreferrer">https://wiki.libsdl.org/SDL_AddTimer</a>)</p>
  <p>I think of one solution is that I can declare a structure containing all of my variables but I'm not sure if it is the best way to do so.</p>
  <p>Thank you for your help ~~</p>