Archived

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

Blue*Omega

DX8 Texture size

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