DX8 Texture size
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!"
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement