Re: Stretch my scene with my new window's size
From: Rich [Microsoft Direct3D MVP] (legalize+jeeves_at_mail.xmission.com)
Date: Thu, 19 Feb 2004 08:36:19 -0800
[Please do not mail me a copy of your followup]
email@example.com (NeoAsimov) spake the secret code
>// Get the new dimensions of the display's render target area.
>float aspectWidth = (float)mDevice.DisplayMode.Width;
>float aspectHeight = (float)mDevice.DisplayMode.Height;
...assuming you're in exclusive mode and the size of the render target
is the size of the display mode, this is correct.
>I already test this before sending this post and this don't seem to work either.
Then you must be doing something wrong. I've done this in my code and
it works properly.
-- "The Direct3D Graphics Pipeline"-- code samples, sample chapter, FAQ: <http://www.xmission.com/~legalize/book/> Pilgrimage: Utah's annual demoparty <http://pilgrimage.scene.org>