Sign in to follow this  

Loaded textures without alpha components.

Recommended Posts

I'm having this little problem when loading images with palettes (mainly bmp) where when it's read in with D3DXCreateTextureFromFile or D3DXCreateTextureFromFileEx(with 0x00000000 as colour key) it will have 0x00 for the alpha value when a pixel is retrieved. On the other hand if it's created with D3DXCreateTextureFromFileEx with a colour key it will have an alpha component. Is there some way of going about making sure that it sets a alpha value, or somehow force the texture to use the last colour key as transparency?

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