In my crap game, my PrimaryMenu, SubMenus, CrapTable, Chips and Dice will all be PNG images. I'm thinking that I should load all of the PNG images that I'll use in my program when the program is first opened. No point in letting the user setup the game and then have the program try load the crap table image when the actual game is started, only to find out then that the crap table image on the hard drive is missing or corrupt.
Do you load all of your images when your program first starts?
If so, how do you store your images so they will be accessible to the different classes when they are needed? I'm thinking about making a global struct to load all images into. Is that a good way to do it, or is there a different recommended way?
Thanks,
Raptor