EndGraphics?

BlitzMax Forums/BlitzMax Beginners Area/EndGraphics?

QuickSilva(Posted 2009) [#1]
Is it OK to just open a new graphics mode or should I start by closing the previous one? I`ve seen some examples that use EndGraphics first and others that omit the command completely. Is this bad practice? What is EndGraphics doing behind the scenes?

Thanks for any advice.
Jason.


ImaginaryHuman(Posted 2009) [#2]
It wouldn't hurt to EndGraphics() anyway if you don't need to keep the other screen open.

I'm not sure if Max lets you have more than one screen open at a time, but SetGraphics() does suggest so.


kfprimm(Posted 2009) [#3]
Graphics calls EndGraphics at the beginning of the function.


Kistjes(Posted 2009) [#4]
I'm not sure if Max lets you have more than one screen open at a time, but SetGraphics() does suggest so.

In MaxGUI you can set more than one canvas in a window. You can also open multiple windows with their own canvas.
That's why I asked for a GetGraphics() function in this thread.