Windowed mode resize

Blitz3D SDK Forums/Blitz3D SDK Programming/Windowed mode resize

Can we have a resize function for windowed modes.

ie. I want to resize the Graphics3D to my newly sized window without having to close the graphics.

good question!
I'm very interested too...

I think there was a note in the documentation that the trick was to make the windowed mode size as large as needed (maximum window size) and then use the viewport commands.

could you please explain this a little more?

Thanks in advance!

Good point... Currently I'm ending graphics and creating them again (and realoding everything) on the resize command... and working this way sucks...

> could you please explain this a little more?

If you are working on a 1024 by 768 display and the rendering window is 400 by 200 then then do the following. (psuedocode)

bbsetblitz3dhwnd(control.hwnd)
bbbeginblitz#d()
graphics3d(1024,768)
cam = bbcreatecamera
bbcameraviewport(cam,0,0,400,200)

When the output area is resized do another bbcamerviewport command.

For the 2D modes there should be something similar