Skip to main content
GameDev.net gamedev.net
🔒 Locked

StretchRect problems

Started by Motorherp Feb 16, 2005 at 1:26 PM 1 replies 2.5k views
Original Post
Motorherp
Motorherp
Hi. I'm currently trying to copy a loaded texture to the backbuffer whilst strecthing it so it fits using: HRESULT StretchRect( IDirect3DSurface9 *pSourceSurface, CONST RECT *pSourceRect, IDirect3DSurface9 *pDestSurface, CONST RECT *pDestRect, D3DTEXTUREFILTERTYPE Filter ); I've followed the docs and made sure my texture is in a default pool and all that stuff but it just refuses to work. Is SretchRect not able to copy to the back buffer or does anyone know what else may be wrong?? Cheers
[size="1"] [size="4"]:: SHMUP-DEV ::
Motorherp
Motorherp
Great smashing super. Cheers for that, I never realised you could do that debug stuff in directX. Always thought it was a bit of an oversight really. Can't give it a go now cause I'm at work but I'll have a stab at it tonight. Many thanks
[size="1"] [size="4"]:: SHMUP-DEV ::

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.