Jump to content
  • Advertisement
Sign in to follow this  
coreSOLO

loading FX files in application

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

I have written a simple shader in a FX file. Also tested it with rendermonkey. Now how do I load and use this shader in my DX9 VC++ code? I need the shader to be available even if the FX file is not in the same directory as EXE file. Please suggest...

Share this post


Link to post
Share on other sites
Advertisement
Use D3DXCreateEffectFromFile() or D3DXCreateEffectFromFileEx() and specify the full file path.

Alternatively include the file as a resource and use D3DXCreateEffectFromResource() or D3DXCreateEffectFromResourceEx() and you will not have to worry about a file location/path.

Share this post


Link to post
Share on other sites

This topic is 3625 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.

Guest
This topic is now closed to further replies.
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!