:: Modifying Render targets::

vindos

Newcomer
hi
I render on to a texture.How can i modify the texture in an optimal way. If it was a backbuffer i could lock and modify the bits..How to modify the render target if its a tetxure bcos i assume we cannot lock render target.......:cry:
bye
 
Render to it.

Assuming you're talking about Direct3D 9 and the modification you want to do is more complex, you could use GetRenderTargetData to copy the data to an off-screen surface, modify it, and StretchRect it back to the rendertarget texture.
 
Back
Top