changing resolution during the game

Blitz3D Forums/Blitz3D Programming/changing resolution during the game

mouss38(Posted 2003) [#1]
how to change it during the game?
"graphics3D" command return an error if it is used after any other 3D command... But i have seen some B3D games with this function (Mr Twinkle).

So how to change this resolution during the game, and not before in any config program (......made with Blitz +) ?


Warren(Posted 2003) [#2]
"Graphics3D" is what you need to use but you need to reload all of your resources again (textures, images, sounds, etc) because they're all discarded when the video mode changes.


jhocking(Posted 2003) [#3]
You'll want to have a loading function which loads all the game resources when called. Then you can just call the loading function immediately after Graphics3D. Such a function is a good idea anyway for just about any game in order to organize your code.


cyberseth(Posted 2003) [#4]
Also, try calling EndGraphics before your Graphics3D command. And then of course, load all your resources. You won't need to reload any sound or music, but you will need to load images, textures, meshes and sprites..