Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#ActualEWClay

Posted 08 April 2013 - 02:49 AM

Then in terms of OOP theory, the design pattern you want is this:

http://en.wikipedia.org/wiki/Template_method_pattern

SDL_Flip is needed for every game, so factor it out and don't have the (derived) game state class even be aware of it.

#1EWClay

Posted 08 April 2013 - 02:43 AM

Then in terms of OOP theory, the design pattern you want is this:

http://en.wikipedia.org/wiki/Template_method_pattern

SDL_Flip is needed for every game, so factor it out and don't have the game state class even be aware of it.

PARTNERS