fast_rx wrote:If I pass the display pointer into the functions, I don't care what I named it or what the scope is.
If I don't pass the display, how is this class going to get the display pointer? The global is in another .cpp file, so you'd at least have to declare it extern, right?
I'm not trying to tell anyone the way to code, just the way I'm doing it to keep me from shooting myself in the foot.
Funny, but for the same reasons (not to care about the name & scope) I do use it as global pointer, all I need is (as you said):
extern pDisplay;
in Globals.h
Not trying to shoot in your feet

Thanks for telling your experience.
jaguard wrote:I wonder, how many of such switchcases I will need to do, considering that in my game(which is, btw being released today or tomorrow, depending on your time zone

) there are a ~1700 gfx files to be loaded
You don't need switches at all, if you just load files by passing name as a string that is loaded by string number (from external txt or by resource string).