public ApplyTextureAliases ( string>.Dictionary |
||
aliasList | string>.Dictionary | |
apply | bool | |
return | bool |
/// <summary> /// Applies texture names to Texture Unit State with matching texture name aliases. /// All techniques, passes, and Texture Unit States within the material are checked. /// If matching texture aliases are found then true is returned. /// </summary> /// <param name="aliasList">A map container of texture alias, texture name pairs.</param> /// <param name="apply">Set to true to apply the texture aliases else just test to see if texture alias matches are found.</param> /// <returns>True if matching texture aliases were found in the material.</returns> public bool ApplyTextureAliases(Dictionary <string, string> aliasList, bool apply) { bool testResult = false; // iterate through all techniques and apply texture aliases for (int i = 0; i < techniques.Count; i++) { Technique technique = (Technique)techniques[i]; if (technique.ApplyTextureAliases(aliasList, apply)) { testResult = true; } } return(testResult); }