Jump to content


Directx texture from surface


  • You cannot reply to this topic
1 reply to this topic

#1 i_robot

    New Member

  • Members
  • PipPip
  • 22 posts

Posted 31 October 2006 - 10:46 AM

hi guys
what i want to know is , can we create texture(IDirect3dtexture9) from surface(IDirect3DSurface9) in directx ? If yes then plz suggest me some method .
Regards .
...:yes:

#2 Goz

    Senior Member

  • Members
  • PipPipPipPip
  • 574 posts

Posted 31 October 2006 - 10:55 AM

I believe the only way is to create a Texture, obtain its surface and then use D3DXLoadSurfaceFromSurface (Or, of course, lock both surfaces and copy it yourself).

What are you trying to do exactly? If you are trying to do render to texture have you looked at IDirect3DDevice9::SetRenderTarget?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users