Sign in to follow this  
arva

GetRenderTarget(), SetRenderTarget()

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this