Exemplo n.º 1
0
        /// <summary>
        /// Gets the effects for a particular <see cref="EffectType"/>.
        /// </summary>
        /// <param name="effectType">Effect type.</param>
        /// <returns>A collection of <see cref="EffectInfo"/></returns>
        public IList <EffectInfo> GetEffects(EffectType effectType)
        {
            var enumEffectsCallback = new EnumEffectsCallback();

            EnumEffects(enumEffectsCallback.NativePointer, IntPtr.Zero, effectType);
            return(enumEffectsCallback.EffectInfos);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the effects for a particular <see cref="EffectType"/>.
 /// </summary>
 /// <param name="effectType">Effect type.</param>
 /// <returns>A collection of <see cref="EffectInfo"/></returns>
 public IList<EffectInfo> GetEffects(EffectType effectType)
 {
     var enumEffectsCallback = new EnumEffectsCallback();
     EnumEffects(enumEffectsCallback.NativePointer, IntPtr.Zero, effectType);
     return enumEffectsCallback.EffectInfos;
 }