コード例 #1
0
ファイル: Material.cs プロジェクト: florin-chelaru/urho
 /// <summary>
 /// Set shader parameter animation.
 /// </summary>
 public void SetShaderParameterAnimation(string name, ValueAnimation animation, WrapMode wrapMode, float speed)
 {
     Runtime.ValidateRefCounted(this);
     Material_SetShaderParameterAnimation(handle, name, (object)animation == null ? IntPtr.Zero : animation.Handle, wrapMode, speed);
 }
コード例 #2
0
 /// <summary>
 /// Remove attribute animation.
 /// </summary>
 public void RemoveAttributeAnimation(ValueAnimation attributeAnimation)
 {
     Runtime.ValidateRefCounted(this);
     ObjectAnimation_RemoveAttributeAnimation0(handle, (object)attributeAnimation == null ? IntPtr.Zero : attributeAnimation.Handle);
 }
コード例 #3
0
 /// <summary>
 /// Add attribute animation, attribute name can in following format: "attribute" or "#0/#1/attribute" or ""#0/#1/
 /// #1/attribute.
 /// </summary>
 public void AddAttributeAnimation(string name, ValueAnimation attributeAnimation, WrapMode wrapMode, float speed)
 {
     Runtime.ValidateRefCounted(this);
     ObjectAnimation_AddAttributeAnimation(handle, name, (object)attributeAnimation == null ? IntPtr.Zero : attributeAnimation.Handle, wrapMode, speed);
 }
コード例 #4
0
 /// <summary>
 /// Set attribute animation.
 /// </summary>
 public void SetAttributeAnimation(string name, ValueAnimation attributeAnimation, WrapMode wrapMode = WrapMode.Loop, float speed = 1f)
 {
     Runtime.ValidateRefCounted(this);
     Animatable_SetAttributeAnimation(handle, name, (object)attributeAnimation == null ? IntPtr.Zero : attributeAnimation.Handle, wrapMode, speed);
 }
コード例 #5
0
 public ShaderParameterAnimationInfo(Material material, string name, ValueAnimation attributeAnimation, WrapMode wrapMode, float speed) : base(UrhoObjectFlag.Empty)
 {
     Runtime.Validate(typeof(ShaderParameterAnimationInfo));
     handle = ShaderParameterAnimationInfo_ShaderParameterAnimationInfo((object)material == null ? IntPtr.Zero : material.Handle, name, (object)attributeAnimation == null ? IntPtr.Zero : attributeAnimation.Handle, wrapMode, speed);
     Runtime.RegisterObject(this);
 }
コード例 #6
0
 public ValueAnimationInfo(Urho.UrhoObject target, ValueAnimation animation, WrapMode wrapMode, float speed) : base(UrhoObjectFlag.Empty)
 {
     Runtime.Validate(typeof(ValueAnimationInfo));
     handle = ValueAnimationInfo_ValueAnimationInfo0((object)target == null ? IntPtr.Zero : target.Handle, (object)animation == null ? IntPtr.Zero : animation.Handle, wrapMode, speed);
     Runtime.RegisterObject(this);
 }