|
-
Nov 4th, 2005, 01:46 AM
#1
Thread Starter
PowerPoster
[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?
Last edited by Fox; Nov 8th, 2005 at 12:32 AM.
-
Nov 8th, 2005, 12:31 AM
#2
Thread Starter
PowerPoster
Re: Get texture size after loading
Nevermind the question. Just pass a D3DXIMAGE_INFO to the CreateTextureFromFileEx function and it works.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|