#region usings using System; using System.Collections.Generic; #endregion namespace SM.OGL.Shaders { /// /// Holds Actions for the preprocessor. /// public class ShaderPreProcess { /// /// Holds actions for the preprocessor. /// public static Dictionary> Actions = new Dictionary> { {"import", Import} }; private static void Import(ShaderFile file, string param) { foreach (var extension in param.Split(' ')) file.GLSLExtensions.Add(ShaderExtensions.Extensions[extension]); } } }