[resolved] Get texture size after loading
Good evening!
How can I find out a texture's size after loading it (using CreateTextureFromFileEx in DX8)?
- The value returned by GetLevelDesc only matches if the original texture size is a power of 2 (but I can't assume the user always pays attention to this rule).
- Furthermore I want to receive the size from DirectX, not from the file header.
Any ideas?
Re: Get texture size after loading
Nevermind the question. Just pass a D3DXIMAGE_INFO to the CreateTextureFromFileEx function and it works.