Sign in to follow this  

Technique name from D3DXHANDLE

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 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this