Sign in to follow this  
ArgusMaker

Surface to texture

Recommended Posts

ArgusMaker    102
Hi :D
I have to copy an entire texture to a surface.
Why doesen't this code work?
[code]SurfaceToTexture(LPDIRECT3DSURFACE9 surface, LPDIRECT3DTEXTURE9 texture)
{
IDirect3DSurface9* destination = NULL;
texture->GetSurfaceLevel(0,&destination);
DX::g_pd3dDevice->UpdateSurface(surface,NULL,destination,NULL);
}[/code]

Share this post


Link to post
Share on other sites
jamesleighe    222
Look into 'stretchrect'.
[color="#0000EE"][u]
[/u][/color]
[color="#0000EE"][u][url="http://msdn.microsoft.com/en-us/library/bb174471(v=vs.85).aspx"]Link[/url]
[/u][/color]

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