Global Resources
I'm trying to make all my game resources global and load them all up front (to simplify things), but how can I make it so that member functions outside of Main.cpp know about them? I have them declared in Main.h and initialized in Main.cpp. I need it so all the game state functions can access them.
You might wanna take a look at this article.
http://www.gamedev.net/reference/articles/article1798.asp
http://www.gamedev.net/reference/articles/article1798.asp
Globals are bad...
If anything just have a global ResourceManager class.
But again, globals are bad.
If anything just have a global ResourceManager class.
But again, globals are bad.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement