Let's say I use SDL (1.2 or 2.0) in my program to handle events, should I use callbacks or the good old giant switch statement?
Name:
Anonymous2014-06-21 12:14
>>2 Yes because everyone I have seen uses a switch Also using a for/while that calls every callback that may not even be needed would be slower instead of using a nice O(1) switch