Original Post
My project directory is "D:\Github Project\Game-Engine". If i put my resource files in project directory like; "D:\Github Project\Game-Engine\car.jpg" and write the code below:
it works!!!
But when i try to put all my resource files to another directory like Resources "D:\Github Project\Game-Engine\Resource", whatever i try as file path, it did not work.
Put "car.png" in directory Resource "D:\Github Project\Game-Engine\Resource\car.png" and write the codes below:
Unfortunately none of them is worked..
Could anyone help me pls?
Thankss
D3DXCreateTextureFromFileA(m_d3d, "car.jpg" , &m_Texture);
it works!!!
But when i try to put all my resource files to another directory like Resources "D:\Github Project\Game-Engine\Resource", whatever i try as file path, it did not work.
Put "car.png" in directory Resource "D:\Github Project\Game-Engine\Resource\car.png" and write the codes below:
D3DXCreateTextureFromFileA(m_d3d, "D:\\Github Project\\Game-Engine\\Resource\\car.jpg" , &m_Texture);
D3DXCreateTextureFromFileA(m_d3d, "D:\Github Project\Game-Engine\Resource\\car.jpg" , &m_Texture);
D3DXCreateTextureFromFileA(m_d3d, "..\Resource\\car.jpg" , &m_Texture);
Unfortunately none of them is worked..
Could anyone help me pls?
Thankss