Skip to main content
gamedev.net
🔒 Locked

understanding cgCreateEffectFromFile

Started by froni 0 replies 1.3k views
Original Post
froni
froni
Hello! I have a problem with the function cgCreateEffectFromFile(myCgContext, "prg.cgfx", NULL); The programm Prog.cgfx, where has it be located?? I get the error: "The file could not be read" I test it with absolute path, too. like "C:\-...\prg.cgfx" Thanks Froni
Lord_Evil
Lord_Evil
I think it uses your applications relative path, so put it there. Or load it yourself and use the cgCreateEffect function.
If I was helpful, feel free to rate me up ;)If I wasn't and you feel to rate me down, please let me know why!

Topic Locked

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

Sign in to reply to this topic.