Rendering to a texture
1. Save current target with:
IDirect3DDevice8::GetRenderTarget
2. Get the surface of your texture:
IDirect3DTexture8::GetSurfaceLevel
3. Change Render target:
IDirect3DDevice8::SetRenderTarget
4. Render
5. Restore saved target with
IDirect3DDevice8::SetRenderTarget
IDirect3DDevice8::GetRenderTarget
2. Get the surface of your texture:
IDirect3DTexture8::GetSurfaceLevel
3. Change Render target:
IDirect3DDevice8::SetRenderTarget
4. Render
5. Restore saved target with
IDirect3DDevice8::SetRenderTarget
Thanks. One question, though. What do I need to do with the IDirect3DTexture8 object before I call GetSurfaceLevel? Do I need to initialize it and lock it?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement