[SDL] Re: Game event loop and input

Calvin Spealman calvin at ironfroggy.com
Fri Jan 31 07:21:01 PST 2003

Another possible solution to several of the questions asked in this 
thread might be to create an array of function points that handle the 
different states.


void DoStateFunc(int & state) {
	State_Function_Array[state](state); // takes a state reference
         // to change it

More information about the SDL mailing list