Autodesk in their wisdom have deprecated IGameFX and all it's accompanying classes... which meaning I need to rewrite some legacy code in an exporter (if we want to use it in newer versions of max). Now I can duplicate most of the stuff using direct3d sdk function
Code: Select all
D3DXCreateEffectCompilerFromFile()
which gets me an LPD3DXEFFECTCOMPILER which gives me access to the parameter definitions, functions and techniques (and passes) and all the annotations that go with them.
what I'm struggling with is parsing the Sampler States and the pass Render States from the file, I could just search the file for text strings but thats made tricky by the possible use of includes and macros. Any know a fix for this ?