Jump to content
  • Advertisement
Sign in to follow this  
luasitdown

how to get the entry point function .fx file ?

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

Is there the function like getvsmain() or getpsmain()?? another question : how to traverse tech in a .fx file? or how to get technique number so that I can trverse by technique index.

Share this post


Link to post
Share on other sites
Advertisement
Quote:

Is there the function like getvsmain() or getpsmain()??

Not that I know of.

Quote:

another question : how to traverse tech in a .fx file? or how to get technique number so that I can trverse by technique index.

When you are using the ID3DXEffect interface or the Effect class for Managed DirectX, when you call Begin method in the Effect class it returns the number of passes in the effect to completely render the effect.
So what people do normally is have a for loop that will loop across the returned number of passes in the effect.

edit:
For your technique, the only way I can think of is when you are writing the technique to give it an appropriate name and then you can parse the file or just encode a comment or something with the amount of techniques in the file and their appropriate names.

I hope this helps.
Take care.

[Edited by - Armadon on January 2, 2006 8:11:00 AM]

Share this post


Link to post
Share on other sites
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!