Sign in to follow this  

D3DMX and texture loading

This topic is 3930 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to write a small game for my Pocket PC using Direct3D Mobile. I have a Dell Axim X51v, and I use D3DMXCreateTextureFromFileEx() to load in my textures. The problem is, it doesn't seem to work correctly. I've tried .bmp, .png and .tga files, and out of those 3 the only one that doesn't return an error is .bmp. With .png and .tga, the function returns 0x88760b59 which, according to the header files and documentation, isn't even a valid error code. I suspect that it's D3DMXERR_INVALIDDATA, although according to d3dmxerr.h and d3dm.h no such value exists. Has anyone else had success in using D3DMX to load in texture formats other than .bmp? The documentation says that it supports .bmp, .dds, .dib, .jpg, .png, and .tga, but since the function is spewing phantom error codes I'm not too willing to trust the documentation completely.

Share this post


Link to post
Share on other sites

This topic is 3930 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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