D3DXCreateTextureFromFileInMemoryEx not working

Started by
2 comments, last by DarkSaint 19 years, 10 months ago
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?
Advertisement
use the debug d3dx library(d3dx9d.lib) to know the cause of the error.
Thanks, that seems to have fixed my problem with the textures not showing but now my light doesn''t work..for why?
Nevermind...problem sovled

This topic is closed to new replies.

Advertisement