How to change graphics mode?
Blitz3D Forums/Blitz3D Programming/How to change graphics mode?
| ||
I saw this a while back but I can't find it. Is there a command to kill the current graphics mode before setting a new one? If not, how do you do it mid-program? I keep getting illegal memory errors. |
| ||
endgraphics :) also when you change graphics modes all images/textures are wiped and you have to reload them.. |
| ||
I've never used EndGraphics because calling Graphics3D again automatically wipes all the graphics. As DrakeX points out you have to reload everything when you change the graphics mode (easy to do if you have a separate level loading function; just call that every time you use Graphics3D.) |
| ||
Thanks... Just figured out a way to do it by ending the program and restarting itself, but it's not ideal. This should help! |
| ||
You shouldn't have to resort to that kludge. There isn't (or at least shouldn't be) any problem just calling Graphics3D. As we've already mentioned the illegal memory errors you are getting are probably due to the graphics being purged from memory; this happens when you call Graphics3D. |
| ||
Yeah, it works now: the only thing is, I've found going from a windowed res to another windowed res slows the program down a hell of a lot. |