D3DXCreateTextureFromFileEx root file path
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.
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
Or you should use GetCurrentDirectory API etc...
Cheers
Jack
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement