Game Development Community

BackBuffer and Window Size

by Rojas Fredini, Pablo Sebastian · in Torque X 2D · 11/06/2009 (1:31 pm) · 2 replies

Hello, i'm currently working on a project where i need to have a backbuffer resolution different from the window resolution. Is it possible? i've been trying a few things, but doesn't matter what do i do, i always get the same resolution of the window in the backbuffer.


Thanks.

About the author

Recent Threads


#1
11/07/2009 (12:33 pm)
Can you give an example of what you have tried? In XNA if you want to set it to a different value, it would be graphics.backbufferwidth and graphics.backbufferheight. However your device may not display this correctly which you would then have to calculate a titlesafe zone and then pass that to the draw function. In TorqueX I'm pretty sure that is different.
Post an example and let's see what we need to do.
You have my curiousity.
#2
11/07/2009 (5:32 pm)
Well, first when the game is initializing I set

Game.Instance.Window.AllowUserResizing = true

to let the user resize the window, and i want the engine to expand the backbuffer via interpolation to the real window size, if different from the backbuffer size.
When the user resizes the window, the device changes the backbuffer size to match the window, and if I change the device settings (backbuffer width and height) and call device.ApplyChanges() to resize the backbuffer, the window gets resized to the backbuffer size. So I can't find a way to get this working.

I've done this in Direct3d before but i don't get what i'm missing here.

Thanks for the response.