As we push more functionality into the run loop, we need to find a way to write tests for it. The challenge is that it also deals with SDL matters which have side effects like creating windows, which is not unit test friendly.
Can we abstract the SDL functionality so we can mock it and have a run loop that deals just with the update mechanics?
As we push more functionality into the run loop, we need to find a way to write tests for it. The challenge is that it also deals with SDL matters which have side effects like creating windows, which is not unit test friendly.
Can we abstract the SDL functionality so we can mock it and have a run loop that deals just with the update mechanics?