Jump to content
  • Advertisement
Sign in to follow this  
lubby

Technique name from D3DXHANDLE

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

Hey there. I am a little stuck on what may just be a simple query. Here is hoping that someone out there in GD.net land can help. I have a D3DXHANDLE it's a handle for a D3DXEffect technique, from this handle I need to be able to reverse lookup the technique name. I am doing this so that I can link up artist friendly technique names (string) to an index in an array of initialized techniques. All techniques for an effect are created at init time and parsed with FindNextValidTechnique() which returns the handle only having no concept of technique name. Aside from this I could create the techniques using GetTechniqueByName("Artist friendly name") only as they are required. In this case I need to dyn-realloc my technique arrays whenever a new technique is required, all issues aside I would rather not do this, especially if there is a simple solution to get the technique name from a handle. Thanks for any advice you can supply!

Share this post


Link to post
Share on other sites
Advertisement
ID3DXBaseEffect::GetTechniqueDesc should get you what you need, as long as you have a handle.

Share this post


Link to post
Share on other sites
Fantastic, tested and gave me what I wanted. Thanks for the spot on reply.

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!