Nikola Whallon | 17 Aug 2010 01:34
Picon

Re: new, tiny, modest game

Question:

When loading images, I have a nice function in ImageObject that does  
that for everything, but I call it all over the places (for example,  
in the functions initShip, initPlanet, etc, each one loads its image).  
This makes quitting after checking if the image loaded properly rather  
difficult. Is it smarter to load all my textures at the beginning of  
execution? And have my main.cpp look more like:

initSDL()
initOpenGL()
loadTextures()

statemachine{}

?

Thanks,
saturn

Gmane