In general SDL API callbacks are called with the userdata paramter first, to mimic C++ method call convention