• Advertisement
Sign in to follow this  

GetRenderTarget(), SetRenderTarget()

This topic is 2981 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