Original Post
I was wondering if which is the 'better' way of having access to the graphics class in my design as follows? Main class creates graphics class (specifically HGE class using the HGE engine) and sets it up Main class sets up Game class and passes the HGE created class Game class passes the graphics to the current state class (to draw whatever the state is, i.e. menu, credits, actual game) Then the state can pass the class down again.. and so on I hope this makes sense. I've read things against using global variables, yet passing the graphics class down each time is lots of repetative code. Thanks for any replies =]