Ejemplo n.º 1
0
        /// <summary>
        /// Updates the device to use the effect pointed to by the specified GUID.
        /// </summary>
        /// <param name="guid">GUID to set.</param>
        public void SetGuid(Guid guid)
        {
            if (CurrentEffectId != Guid.Empty)
            {
                NativeWrapper.DeleteEffect(CurrentEffectId);
                CurrentEffectId = Guid.Empty;
            }

            NativeWrapper.SetEffect(guid);
            CurrentEffectId = guid;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Updates the device to use the effect pointed to by the specified GUID.
 /// </summary>
 /// <param name="guid">GUID to set.</param>
 public void SetGuid(Guid guid)
 {
     DeleteCurrentEffect();
     NativeWrapper.SetEffect(guid);
     CurrentEffectId = guid;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Updates the device to use the effect pointed to by the specified GUID.
 /// </summary>
 /// <param name="guid">GUID to set.</param>
 public void Set(Guid guid)
 {
     Clear();
     NativeWrapper.SetEffect(guid);
     CurrentEffectId = guid;
 }