Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Blue*Omega

DX8 Texture size

This topic is 6249 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I need to get the size (heigth and width, not bytes) of a texture in DirectX 8. I''m using a LPDIRECT3DTEXTURE8 structure and loading it with D3DXCreateTextureFromFile(). Any suggestions? ----------------------------- Vash the Stampede "Love & Peace!"

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Instead of D3DXCreateTextureFromFile()
you should use D3DXCreateTextureFromFileExA().

Take a loook at the 12th parameter. It returns a pointer to an D3DXIMAGE_INFO structure containing width/height and other info.

Share this post


Link to post
Share on other sites
Thank you kind sir! I now encorage everyone to profusly thank mr. "Anonymous Poster" whenever they may happen across him. ^_^

But seriously, thanks!

-----------------------------

Vash the Stampede

"Love & Peace!"

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!