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:
Directx texture from surface
Started by i_robot, Oct 31 2006 10:46 AM
1 reply to this topic
#1
Posted 31 October 2006 - 10:46 AM
#2
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?
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












