Sign in to follow this  
jagguy

D3DXCreateTextureFromFileEx

Recommended Posts

jagguy    100
If I want to use sprites without being regular shape eg 256X512 or any other combo, then I use this function. q)Could someone please give an example of using this function D3DXCreateTextureFromFileEx q)what speed penalties do you suffer with this?

Share this post


Link to post
Share on other sites
Mushu    1396
D3DXCreateTextureFromFileEx (MSDN).

I would assume that it would be slightly slower than D3DXCreateTexture since there's a lot more going on (mipmapping, colorkeys, etc), but since texture loading should only be done at load-time, the difference should be negligable.

Unless you're creating textures every pass, at which point I trout you and yell that you're doing something wrong.

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