does destroying and then restarting the IrrLicht Device cause GUI items to be invalidated? what about Textures/Meshes?
I am thinking about adding to my ICE framework a screen to choose your device type/color depth/resolution. Im wondering if I have to make it only available as an initial state, or if I can restart the device at any time without worrying about invalidating the current state's loaded data. (especially since for GUI items, I use static pointers, and dont destroy them between states right now.. though I could change that if neccesary)
restarting the IrrLicht Device
restarting the IrrLicht Device
a screen cap is worth 0x100000 DWORDS
I suspect it invalidates them, by default. You'd have to make sure everything you want to keep is grab()'ed, then add it to the new scene.
That's the way I see it anyway. Perhaps Niko knows of a better way, or perhaps he can add functionality to switch display modes (between fullscreen and windowed, in addition mode changes as you mentioned) without having to destroy the base Irrlicht instance.
That's the way I see it anyway. Perhaps Niko knows of a better way, or perhaps he can add functionality to switch display modes (between fullscreen and windowed, in addition mode changes as you mentioned) without having to destroy the base Irrlicht instance.
well, you cant really save the state of pointers or anything. and it would take a lot of code to automate keeping track of that and automatically unloading and re-loading the correct resources. I think i'll just make sure that any game-breaking changes can only happen before the game starts.
a screen cap is worth 0x100000 DWORDS