Global Resources

Started by
1 comment, last by thre3dee 15 years, 9 months ago
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.
Advertisement
You might wanna take a look at this article.
http://www.gamedev.net/reference/articles/article1798.asp
Globals are bad...

If anything just have a global ResourceManager class.

But again, globals are bad.

This topic is closed to new replies.

Advertisement