Jump to content
  • Advertisement
Sign in to follow this  
Whorse

D3DXCreateTextureFromFileEx root file path

This topic is 2551 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

This might sound like a stupid question, however after looking at the DX API documentation online I couldn't find any information. I'd like to know which folder is considered the root when passing in the file's path.

Share this post


Link to post
Share on other sites
Advertisement
AFAIK, the folder you are looking for should be the one with the sln file in it. You can put a simple TCHAR* path = "abc\\"; to extend the path then _tcscat(path, yourfile); to obtain a full path name under your project folder.
Or you should use GetCurrentDirectory API etc...
Cheers
Jack

Share this post


Link to post
Share on other sites
Hi! Usually, if you place your resources (files, images etc...), in the folder where your executable is located, the application will find them. You don't have to specify the whole path then, just the name of the resource.

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.

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!