Can someone help me with iterating over the variables in the XML file I have using the boost property tree?
<HLSL> <Constants> <Constant name ="myObject"> <Variable name ="matWorld" class ="matrix" type="float" rows="4" cols="4"/> <Variable name ="vObjectPosition" class ="vector" type="float" rows="1" cols="3"/> <Variable name ="arrayIndex" class ="scalar" type="int" rows="0" cols="0"/> </Constant> </Constants> </HLSL>
Here is my code so far [it will not go past the first variable in XML]
void CFxCompiler::LoadShader(const string& headerName, const string& asmName) { using std::vector;
source share