Exemplo n.º 1
0
        public static void WriteEffectNameList(EffectResource resource, System.IO.TextWriter writer)
        {
            EffectResource.VisualEffectNameList handleList = resource.VisualEffectNames;
            int count = handleList.Count;

            for (int i = 0; i < count; i++)
            {
                writer.WriteLine(handleList[i].EffectName);
            }
        }
Exemplo n.º 2
0
        public static SortedList <string, uint> GetEffectHandleList(EffectResource resource)
        {
            EffectResource.VisualEffectNameList handleList = resource.VisualEffectNames;
            int count = handleList.Count;
            FixedDictionary <string, uint> fd = new FixedDictionary <string, uint>(count);

            for (int i = 0; i < count; i++)
            {
                fd.SetValue(i, handleList[i].EffectName, handleList[i].Index);
            }
            return(new SortedList <string, uint>(fd));
        }
Exemplo n.º 3
0
        public static string[] GetEffectNameList(EffectResource resource)
        {
            EffectResource.VisualEffectNameList handleList = resource.VisualEffectNames;
            int count = handleList.Count;

            string[] nameList = new string[count];
            for (int i = 0; i < count; i++)
            {
                nameList[i] = handleList[i].EffectName;
            }
            return(nameList);
        }