Changing GfxMode = Loadimage flag?

BlitzMax Forums/BlitzMax Beginners Area/Changing GfxMode = Loadimage flag?

Grisu(Posted 2005) [#1]
Hi!

In BP it was possible to change the graphics mode without! having to reload all images into vidmem again.

Is this possible with Bmax as well by setting a certain flag?

I'd like switching between fullscreen and windowed mode in realtime...

Thanks!


Warren(Posted 2005) [#2]
Destroying the graphics screen unloads the graphics cards memory. Blitz3D was the same way. Sorry.


Amon_old(Posted 2005) [#3]
He specifically stated that it was BlitzPlus he used to do it in.

Read before posting...


skn3(Posted 2005) [#4]
Lucky for you, extendinf the TImage class is easy. Which you can then overload the new method, which adds each loaded image to a list. Then changing graphics mode becomes a whole lot easier!


ImaginaryHuman(Posted 2005) [#5]
Maybe one of the only ways would be to load your graphics into pixmaps, keep those pixmaps in main memory, and then transfer them over to Images in videoram after you've changed the Graphics mode.


Grisu(Posted 2005) [#6]
I reload the gfx images when changing the gfx mode. But now I have the problem that the DrawText outputs only show blocks. Is there a way to save the oldimagefont and reload it as well.


xlsior(Posted 2005) [#7]
Amon: You realize that the img in your sig would take between 15 and 20 seconds to load over a dialup connection?

Might want to cut down the size a little...