Jump to content
  • Advertisement
Sign in to follow this  
arva

GetRenderTarget(), SetRenderTarget()

This topic is 3164 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 just want to be sure if GetRenderTarget returns me the main Back Buffer pointer(The set render target function wasn't called before). I would like also to know how does it exactly work. I want to create a surface(rendersurface) with which I want to replace the main Back Buffer(default RT)-the format of this surface(rendersurface) is set automaticly? After I set the new RT all data that were send before to Back Buffer will be send to it and subsequently send to Front Buffer with Present(0,0,0,0) method? Or I have to set the source surface in Present()? What is the difference between LPDIRECT3DSURFACE9 and IDirect3DSurface9? I know that this are super-newbie questions. IDirect3DSurface9 * rendersurface=NULL; IDirect3DSurface9 * BackBuffer; pd3dDevice->GetRenderTarget(0, &BackBuffer); g_pd3dDevice->SetRenderTarget(0, render);

Share this post


Link to post
Share on other sites
Advertisement
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!