Say I've got 5 levels, I've create a class for each level with a sort of "Load Level" function that I fire off when the player picks the level from the main menu. So in that function I load up all the objects, sprites, textures, shaders, music and sfx using the variables stores in the header file of that level class.
Now say the player is done playing that level and wants to exit and play another level. After the player returns to the main menu, will destroying the object of that class also destroy all the assets I've loaded in or should I be coding that in in the destructor function of that class?
Eisenstadt Studio: Eisenstadtstudio.com
Composers Page: Milesthatch.net