Skip to main content
GameDev.net gamedev.net
🔒 Locked

D3DXCreateTextureFromFile

Started by StuartSlater Aug 11, 2002 at 9:04 AM 2 replies 1.2k views
Original Post
StuartSlater
StuartSlater
the 2nd argument takes a graphic format i.e. "street.bmp" how can I direct it to a folder in the current project path i.e. /images/street.bmp thanks in advance
tok_junior
tok_junior
just use D3DXCreateTextureFromFile(d3d_device,"Images/texture.tga",&texture);


--
MFC is sorta like the swedish police... It''''s full of crap, and nothing can communicate with anything else.
StuartSlater
StuartSlater
Thanks had tried that previously but it didnt work because id got my \ instead of / in the file name

thanks

Stuart
JGP
JGP
you can use \ in your path strings, but you have to put two \ because the character \ is a special string character in C.

Images\\screen.bmp will also work.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.