Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

DarkSaint

D3DXCreateTextureFromFileInMemoryEx not working

This topic is 5226 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 load a texture from a zip file using zlib and I''ve gotten it to work with D3DXCreateTextureFromFileInMemory() but when I use D3DXCreateTextureFromFileInMemoryEx my textures don''t show. Here''s the arguments I''m passing.
if( FAILED( D3DXCreateTextureFromFileInMemoryEx( g_pd3dDevice, ImageBuffer,
				infostruct.uncompressed_size,0,0,1,0,D3DFMT_UNKNOWN,D3DPOOL_DEFAULT,D3DX_FILTER_DITHER,0,0x00FF00FF,&ImageInfo,NULL, &spritemanager[i].pSmngTextureReference[j] ) ) )
anyone know the solution?

Share this post


Link to post
Share on other sites
Advertisement
Thanks, that seems to have fixed my problem with the textures not showing but now my light doesn''t work..for why?

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!