Rendering to a texture
I understand the concept behind this: Saving the default rendering surface using GetRenderTarget, grabing the surface of the texture you want to render to, setting that surface as the target, then restoring the default surface when you''re done. The program always gets killed when trying to call the GetSurfaceLevel function to grab the texture''s surface. What do I need to do to preinitialize this variable to allow me to grab the surface? A link to a tutorial on this subject would be greatly appreciated. Thanks in advance.
the D3DX function library has something you might be looking for:
ID3DXRenderToSurface()
might solve some of your problems
ID3DXRenderToSurface()
might solve some of your problems
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement