Quote:Original post by Sync Views
if(FAILED(D3DXCreateTexture
(cgm::d3d_device,
w, h,
1,
D3DUSAGE_RENDERTARGET,
D3DFMT_A8R8G8B8,
D3DPOOL_DEFAULT,
ℑ))) return -1;
Why can't you just add "...FromFileEx" onto that function and go from there?
-EDIT- To Sync Views (two posts down)
I'm sorry, but I still am not sure what the problem is. Why can't you just edit your "D3DXCreateTexture" code and change "D3DPOOL_DEFAULT" to "D3DPOOL_MANAGED".
If the answer is obvious, I'm sorry for my stupidity.
Thanks for your patience.
-EDIT-
Forgive me if I'm wrong, but it seems like you want to covert an off-screen texture into a file-texture.
You may want to try here. I'm sorry if this isn't what your looking for. To tell the truth, I just started programming and I shouldn't have tried to help you in the first place. Sorry.
[Edited by - Mr Krackers on March 4, 2008 9:34:38 AM]