For this specifically, don’t add a bunch of parameters to the functions.
Some of my functions have 12 parameters, and it is annoying and unelegant to add new features.
Add a structure as a parameter and pass it as a reference. It is quite easy to add new data to the structure when you want to send more to the function.
There are a ton of other things to consider listed here: http://lspiroengine.com/?p=126
Especially the “Structure” section.