Jump to content
  • Advertisement
Sign in to follow this  
arva

Setting the BackBuffer

This topic is 3137 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I've been searching how to change the main Back Buffer and unfortunatelly didn't find anything helpful. Basicly I need to change the main pointer to a BackBuffer to a pointer of a surface compatible with the back buffer format. The idea is to get some frames from the main stream and anylyze data in them without using lock methods that are lowing the performance. So I will: 1.Switch pointers of BackBuffer and my surface. 2.Anylyze data in BackBuffer. 3.Wait 0.5s 4.Switch back the pointers. 5.Analyze data in my surface. 6.Wait 0.5s 7.Switch pointers of BackBuffer and my surface. 8.Anylyze data in BackBuffer. ... I need only to point me. And maybe also some suggestions about setting my surface format compatible with BackBuffer format. I'm writing my code in C++, DirectX 9.

Share this post


Link to post
Share on other sites
Advertisement
Nevermind. I will set the render target(the default one is Back Buffer). But Does the GetBackBuffer(UINT iSwapChain,UINT BackBuffer, D3DBACKBUFFER_TYPE Type, IDirect3DSurface9 ** ppBackBuffer) method returns only the pointer to Back Buffer or it copyies a whole surface? And when I'm accessing the surface that GetBackBuffer method returned me do I have any possibility to avoid locking the surface?(In fact I don't know how the mechanism of locking surface works). What will happen If I don't lock the surface? The compilator threats this like a mistake?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!