Results 1 to 2 of 2

Thread: [resolved] Get texture size after loading

  1. #1

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    [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.

  2. #2

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    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
  •  



Click Here to Expand Forum to Full Width