Fullscreen/windowed switching

Monkey Archive Forums/Monkey Discussion/Fullscreen/windowed switching

EdzUp(Posted 2013) [#1]
Does anyone have code lying around somewhere that will allow me to switch between windowed and fullscreen on glfw apps? Maybe some way to set resolution too :)

Xaron(Posted 2013) [#2]
You can't. There is no possibility to do that with GLFW at the moment.

Skn3(Posted 2013) [#3]

Havn't gotten around to updating it yet though but it might be a good start?

Xaron(Posted 2013) [#4]
Woah great, so it is possible now? I wasn't aware of that, sorry.

Skn3(Posted 2013) [#5]
Well its fairly hacky way of doing it and I'm not sure its currently working on v70+ but it was working on v68 last time I tried.

You will have to keep track of your image sources and before switching, discard/unload all images. After switching you then have to reload all images back.

EdzUp(Posted 2013) [#6]
Thanks will have a look, would be a brilliant addition to official monkey