Sign in to follow this  
Whorse

D3DXCreateTextureFromFileEx root file path

Recommended Posts

Whorse    158
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
lucky6969b    1330
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

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