Jump to content
  • Advertisement
Sign in to follow this  
Anddos

Cant use D3DXCreateTextureFromFile with Visual Studio 2013?

This topic is 2084 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 am using visual studio 2013 and i am working in d3d9, if i type D3DXCreateTextureFromFile it says undeclared indentfier, so i look for d3dx9.h in my includes folder and cannot find it anywhere,this is the path for d3d9.h,C:\Program Files (x86)\Windows Kits\8.1\Include\shared,what am i suppose to use to load textures now?

Share this post


Link to post
Share on other sites
Advertisement

You won't be able to use D3DX set of library functions anymore unless you manually install old DX SDK. New one doesn't have them and you should look up the code to load DDS textures manually. Or you can use the new Microsoft library called DirectXTex, which is the replacer for some of the old D3DX functions.

More: http://blogs.msdn.com/b/devschool/archive/2013/09/05/c-cx-directxtex-a-helper-library-for-directx-textures.aspx

DXTex: http://directxtex.codeplex.com/

Share this post


Link to post
Share on other sites

I havent even installed the dxsdk, it all comes built in with visual studio now

is it still going to work with device -> SetTexture tho?

Edited by Anddos

Share this post


Link to post
Share on other sites

Device->SetTexture isn't a D3DX call.

 

The DXSDK obviously doesn't all come with the Windows SDK because they've left out the D3DX components.

 

Another way is to LoadLibrary the D3DX DLL, then GetProcAddress for the function you want.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!