Sign in to follow this  
dronbas

How to get the size of a texture?

Recommended Posts

IDirect3DTexture9 has a method called GetLevelDesc which returns a surface description (D3DSURFACE_DESC). The surface description has Width and Height members. To get the width and height of your texture, pass 0 as the Level parameter to GetLevelDesc.

For more info, look here

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this