I have been using LPDIRECT3DTEXTURE9 exclusivly in my projects and creating textures using "D3DXCreateTextureFromFile(..."
But I want to learn how to use a IDirect3DTexture9 instead. (I understand that LPDIRECT3DTEXTURE9 is just a IDirect3DTexture9*)
My main problem is creating a IDirect3DTexture9 from a file. It is a lot easier using D3DXCreateTextureFromFile(....) constructor, from what I can tell
. I believe for a IDirect3DTexture9 i use device->CreateTexture(.....) but I don't know what pass in for DWORD usage, D3DFORMAT format, D3DPOOL Pool? Are there defaults for these? (does LPDIRECT3DTEXTURE9 have these?)
Also there doesn't seem do be a file name parameter for IDirect3DTexture9 so how would I create a IDirect3DTexture9 from a file?
I have looked at the msdn pages and they are no help to me.